Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Stain Corb on September 01, 2019, 12:07:03 AM

Title: How to = Enable/Disable UI image [SOLVED]
Post by: Stain Corb on September 01, 2019, 12:07:03 AM
Sorry to bother with something that seems so easy.

I have a UI image on the canvas and am looking for an action to disable this UI. but I don't see any actions for disabling or enabling UI images in the action browser.

Thanks for any help.
Title: Re: How to = Enable/Disable UI image
Post by: Broken Stylus on September 01, 2019, 12:38:28 PM
Try Activate Component, point to the UI Image component (drag and drop it into the component target field) and set the Activate option to false.
Otherwise set the color's alpha to 0 or 1 or use a Canvas Component and set its alpha value to 0 or 1.
Title: Re: How to = Enable/Disable UI image
Post by: Stain Corb on September 01, 2019, 04:53:34 PM
Thanks a lot that worked.
Title: Re: How to = Enable/Disable UI image
Post by: Broken Stylus on September 01, 2019, 05:08:31 PM
As a reminder, there are no official "Deactivate this or that" actions. It's always Activate something, with the bool that needs to be set to false. Same with game objects.
Title: Re: How to = Enable/Disable UI image
Post by: Stain Corb on September 06, 2019, 09:25:29 AM
Ok got it thanks a lot.