Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ingumak on August 26, 2017, 01:48:10 AM

Title: UI buttons don´t turn off
Post by: ingumak on August 26, 2017, 01:48:10 AM
Hi! After a holiday we are back home :D

I have returned to work on my small project and I have some problem with the UI.

Let me explain: I have two buttons. First, I want only one to be seen and active. When you click on it, it should disappear and the other button appear and activate.

For this I am using "U gui set interactable" to define whether the button is interactive or not. And "U gui set graphic color" to control the visibility of the button.

Everything seems to work well, except that the button that is missing, if we press in the void, continues to work.

I suppose then that the action "U gui set interactable" is for visual effect and not to make that element active or not. And I can not find another action that directly deactivates the button and activates it. Should I move it off the canvas? It seems to me a strange solution.

Thank you!!!
Title: Re: UI buttons don´t turn off
Post by: Zeldag on August 26, 2017, 09:43:36 AM
Hi,

Why dont you just disable the button game ovject?

https://hutonggames.fogbugz.com/default.asp?W52

This way, you dont just make the button invisible, but you actually make it disappear by disabling it.

Not sure what the interactable action is for or why it is not working.

That is what I usually do to make UI buttons disappear. Or did I miss something?
Title: Re: UI buttons don´t turn off
Post by: ingumak on August 26, 2017, 03:11:32 PM
Hi! No! You don´t miss anything jajaja. Has been my fault. I had assumed that the actions for UI must be UI actions only. But I don´t know why really. Sorry for so evident questions. I have to know better how works Playmaker and Unity. Thanks for your help.