Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: fromfame on March 12, 2013, 12:31:45 PM

Title: Toggle visibility of GUI isn't working [SOLVED]
Post by: fromfame on March 12, 2013, 12:31:45 PM
Hey im fairly new,
so this thing is all about having a convo with an NPC.

im using NGUI from the asset store for generating my GUI,
you can probably tell whats going on down below, GUI's visibility isnt being toggled when the player enters the BOX trigger.

I've tested it on the sphere it works perfectly, i tried using the "Set GUI Alpha" action tho im not sure where i'm going with that, anyone can supply me with a detailed answer please?

thanks guys!
Title: Re: Toggle visibility of GUI isn't working
Post by: Mayhem on March 12, 2013, 12:43:43 PM
I do not know exactly how this certain "Set GUI Alpha"-Action works, but you can try something different, especially when you work with nGUI.

Acess the UISprite-Component by "Set Property"-Action and access the Color-Property and select the Alpha (Color.a), and set it to 0. At least, that's how i do it.

Of course, if someone knows another (better!) way to solve that, feel free to correct me/ comment! :)
Title: Re: Toggle visibility of GUI isn't working
Post by: jeanfabre on July 09, 2013, 05:19:37 AM
Hi,

 "Set Gui alpha" playmaker action only controls Unity GUI system, not NGUI.

Mayhem solution is good. Also spend time learning ngui, it features A LOT of component and behavior already meant to let you control things like that.

bye,

 Jean
Title: Re: Toggle visibility of GUI isn't working
Post by: fromfame on July 10, 2013, 06:04:04 AM
Awesome, Thanks guys!