playMaker

Author Topic: Toggle visibility of GUI isn't working [SOLVED]  (Read 2937 times)

fromfame

  • Junior Playmaker
  • **
  • Posts: 78
  • Sloppy PM Veteran
Toggle visibility of GUI isn't working [SOLVED]
« 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!
« Last Edit: July 10, 2013, 06:04:23 AM by fromfame »

Mayhem

  • Full Member
  • ***
  • Posts: 171
Re: Toggle visibility of GUI isn't working
« Reply #1 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! :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Toggle visibility of GUI isn't working
« Reply #2 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

fromfame

  • Junior Playmaker
  • **
  • Posts: 78
  • Sloppy PM Veteran
Re: Toggle visibility of GUI isn't working
« Reply #3 on: July 10, 2013, 06:04:04 AM »
Awesome, Thanks guys!