playMaker

Author Topic: UI buttons don´t turn off  (Read 104 times)

ingumak

  • Playmaker Newbie
  • *
  • Posts: 18
    • View Profile
UI buttons don´t turn off
« on: August 25, 2017, 10:48:10 PM »
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!!!

Zeldag

  • Full Member
  • ***
  • Posts: 192
    • View Profile
Re: UI buttons don´t turn off
« Reply #1 on: August 26, 2017, 06: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?

ingumak

  • Playmaker Newbie
  • *
  • Posts: 18
    • View Profile
Re: UI buttons don´t turn off
« Reply #2 on: August 26, 2017, 12: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.