playMaker

Author Topic: How to = Enable/Disable UI image [SOLVED]  (Read 1409 times)

Stain Corb

  • Junior Playmaker
  • **
  • Posts: 69
How to = Enable/Disable UI image [SOLVED]
« 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.
« Last Edit: September 06, 2019, 09:27:12 AM by Stain Corb »

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 772
Re: How to = Enable/Disable UI image
« Reply #1 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.

Stain Corb

  • Junior Playmaker
  • **
  • Posts: 69
Re: How to = Enable/Disable UI image
« Reply #2 on: September 01, 2019, 04:53:34 PM »
Thanks a lot that worked.

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 772
Re: How to = Enable/Disable UI image
« Reply #3 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.

Stain Corb

  • Junior Playmaker
  • **
  • Posts: 69
Re: How to = Enable/Disable UI image
« Reply #4 on: September 06, 2019, 09:25:29 AM »
Ok got it thanks a lot.