playMaker

Author Topic: Is there a way to deselect an UI game object?  (Read 2923 times)

tutxinho

  • Playmaker Newbie
  • *
  • Posts: 20
Is there a way to deselect an UI game object?
« on: September 24, 2025, 12:52:18 PM »
There is an action "UI Set Selected Game Object" to select an UI game object, but what about deselecting it? is there any action or workaround to do it?

tutxinho

  • Playmaker Newbie
  • *
  • Posts: 20
Re: Is there a way to deselect an UI game object?
« Reply #1 on: September 29, 2025, 06:36:54 AM »
Any advice on this topic?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4170
  • Official Playmaker Support
    • LinkedIn
Re: Is there a way to deselect an UI game object?
« Reply #2 on: Today at 10:37:14 AM »
Have you tried setting the selected GameObject to null?

tutxinho

  • Playmaker Newbie
  • *
  • Posts: 20
Re: Is there a way to deselect an UI game object?
« Reply #3 on: Today at 01:15:08 PM »
Thank you, I found a workaround creattyng an empty and using the "UI Set Selected Game Object" action to select it, so the selected button gets deselected.

I think it is a similar solution than the one that you suggest? I don't know if there is a more straightforward way to do what you said, I havent found any action to set a Gameobject to null.