Hey there,
so I got this little problem. I have a UISprite (NGUI) GameObject which I want to tween with the HOTween-Actions. Especially the Alpha-Values of the UISprite. When I use the Visual Editor of HOTween everything works fine (tweening the Alpha-Property from 1 to 0), but as soon as I try to do it via States I got problems: it doesn't work.
My setup:
1. State: getting the Child of a certain GameObject and storing it into a local FSM-GameObject-Variable (that works, Inspector is showing the right GameObject)
2. State: Getting the right Component (UISprite) of the saved GameObject-Variable, stored in a local FSM-Object-Variable (Variable is set to UISprite in the Object-Dropdownmenu, this is working, too, shows the right component in the Inspector)
3. State: Getting the Alpha-Property of the saved Component, storing the Value in a local FSM-Float-Variable (does work, too! Inspector is showing the right Value!)
4. State: HOTween Float-Action
Start: alpha_value (float value where the alpha is stored)
End: 0
Result: result (other float value)
The rest are default-settings of the Action.
So now in the Inspector I can see how the Variable alpha_value is tweening from it's initial value 1 to 0 but the UISprite doesn't do anything. It's there like nothing happens, it doesn't become more transparent.
I both tried saving the Property as plain Alpha and Color.a value, didn't work.
(If I do the same with PlayByID and a setup Tween in the Editor it works.)
I also tried using Animate Float or Ease Float. Both didn't work.
What am I doing wrong? I need this one to be such a system and not called by ID!