Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: kyy921 on May 29, 2012, 02:06:49 AM

Title: [SOLVED] How to change an ngui objects color?
Post by: kyy921 on May 29, 2012, 02:06:49 AM
it seen that using set property cannot change ngui's sprite color, is that some way to change it??

Title: Re: How to change an ngui objects color?
Post by: Alex Chouls on May 29, 2012, 02:44:34 AM
What version of Playmaker are you using? I just tested with 1.4.1 and I could set the sprite color using the color property under inherited...
Title: Re: How to change an ngui objects color?
Post by: kyy921 on May 29, 2012, 03:15:58 AM
.... you right... I use to think the inherited item cannot work for ngui.........
thank you!  :)
Title: Re: [SOLVED] How to change an ngui objects color?
Post by: gregmax17 on September 21, 2012, 11:37:47 AM
I am not seeing the "color" underneath the "Inherited" option... am I missing something?
Title: Set Property not setting local variable
Post by: gregmax17 on September 21, 2012, 03:30:20 PM
Nevermind, I found out what I was doing wrong. Its not the gameobject you drag and drop, but the component of the gameobject.

HOWEVER, I am now running into another problem. When I set the property color to a variable "theColor" in the Set Property action, it doesn't stay set when I play and pause the game. It sets the color property value back to "None" as if I haven't set it.

Any ideas on why my variable keeps getting reset right when I start playing and stopping my game in the Unity Editor?