playMaker

Author Topic: disabling uGui buttons  (Read 5140 times)

strange_aeons

  • Junior Playmaker
  • **
  • Posts: 62
disabling uGui buttons
« on: April 27, 2015, 09:19:26 PM »
i have some buttons that are set to switch between sprites when highlighted and clicked etc, i also need these buttons show the disabled sprite under certain circumstances and no idea how to set them to disabled. i have not yet upgraded from playmaker 1.772 and i was wondering if we have a way to do this in a newer version of playmaker?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: disabling uGui buttons
« Reply #1 on: April 28, 2015, 04:08:00 AM »
Hi,

 To disable a component, uncheck Interactable.

 To do this from PlayMaker, use "uGuiGetIsInteractable" and "uGuiSetIsInteractable" actions.

 Bye,

 Jean

strange_aeons

  • Junior Playmaker
  • **
  • Posts: 62
Re: disabling uGui buttons
« Reply #2 on: May 03, 2015, 09:52:31 PM »
hi Jean, where do i find these actions? i dont see them in the uGui action category and they dont show up when i search for them on the ecosystem.
« Last Edit: May 03, 2015, 09:55:08 PM by strange_aeons »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: disabling uGui buttons
« Reply #3 on: May 06, 2015, 02:30:40 PM »
Hi,

 I search for 'interactable' and they get listed in the ecosystem.

Bye,

 Jean

strange_aeons

  • Junior Playmaker
  • **
  • Posts: 62
Re: disabling uGui buttons
« Reply #4 on: May 06, 2015, 08:21:18 PM »
thank you Jean, that seemed to work. although i did get no results when searching from a Unity 5 project, when i switched back to my old Unity 4 project they both came up as search results, so no wonder i didnt find it previously.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: disabling uGui buttons
« Reply #5 on: May 07, 2015, 12:57:55 AM »
Hi,

 I see. Let me fix this. thanks for reporting.

 Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: disabling uGui buttons
« Reply #6 on: May 07, 2015, 04:28:25 AM »
Hi,

 ok, I double checked and ecosystem is feeding fine these actions, even inside Unity 5.

 What version of Unity 5 and ecosystem are you using?

 Bye,

 Jean

strange_aeons

  • Junior Playmaker
  • **
  • Posts: 62
Re: disabling uGui buttons
« Reply #7 on: May 07, 2015, 04:57:08 AM »
my unity is 5.01f1
im not sure about the ecosystem version, but i know i downloaded it in December of 2014

strange_aeons

  • Junior Playmaker
  • **
  • Posts: 62
Re: disabling uGui buttons
« Reply #8 on: May 07, 2015, 05:08:06 AM »
well looks like i needed to update that ecosystem. sorry for the confusion and thanks for the help Jean.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: disabling uGui buttons
« Reply #9 on: May 07, 2015, 05:18:10 AM »
Hi,

 no worries. The Ecosystem version is always in the toolbar, and normally when you search and the server finds out you have an old version you'll get prompted at the top of the browser about a new patch or update. I recommand you always get the latest when you get prompted, so that you don't miss on the new features :)

 Bye,

 Jean