PlayMaker Help & Tips > PlayMaker Help

NGUI Setting Sprite Color Problem [SOLVED]

(1/1)

jayhfd:
Hi,
I've noticed a very strange issue when trying to set a sprite color on NGUI.

I can set the sprite color using the FSM/color variable attached to the sprite with no problem... However, when I try to set it from another FSM every frame, the color is incorrect. I am easing from green to yellow and then yellow to red, but the NGUI sprite color just always seems to ease to bright yellow. The R and G values will both max out, and the B will just pretty much stay at zero.

I've attached a couple images. The easing color appears correct on the FSM that's setting it, but isn't accurate on the NGUI object. You can also see the NGUI sprite updating in real time, so its definitely taking that color var...

*edit, my dumb mistake, was setting the vars from different objects at the same time!!

Navigation

[0] Message Index

Go to full version