playMaker

Author Topic: [SOLVED] How to change an ngui objects color?  (Read 7515 times)

kyy921

  • Junior Playmaker
  • **
  • Posts: 50
    • 上海杉蔓数字科技
[SOLVED] How to change an ngui objects color?
« 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??

« Last Edit: May 29, 2012, 03:41:35 AM by Alex Chouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: How to change an ngui objects color?
« Reply #1 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...

kyy921

  • Junior Playmaker
  • **
  • Posts: 50
    • 上海杉蔓数字科技
Re: How to change an ngui objects color?
« Reply #2 on: May 29, 2012, 03:15:58 AM »
.... you right... I use to think the inherited item cannot work for ngui.........
thank you!  :)

gregmax17

  • Playmaker Newbie
  • *
  • Posts: 11
Re: [SOLVED] How to change an ngui objects color?
« Reply #3 on: September 21, 2012, 11:37:47 AM »
I am not seeing the "color" underneath the "Inherited" option... am I missing something?

gregmax17

  • Playmaker Newbie
  • *
  • Posts: 11
Set Property not setting local variable
« Reply #4 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?