Is there a temporary fix for this issue? I am having a problem with this update. The errors with uirect and tweenalpha. I'm not having problems with any other tweens.
I tried the thread
http://www.tasharen.com/forum/index.php?topic=7210.0 but that did not help me, i am not adding a child or anything. I'm simply doing what I did before, make the gameobject active, then get reference to the component, but for some reason, getcomponent does not work with this update with tweenalpha. I have not changed any code and this coe has worked for a good 4 months now in the same project.
***Error***
NullReferenceException: Object reference not set to an instance of an object
TweenAlpha.set_value (Single value) (at Assets/NGUI/Scripts/Tweening/TweenAlpha.cs:35)
TweenAlpha.OnUpdate (Single factor, Boolean isFinished) (at Assets/NGUI/Scripts/Tweening/TweenAlpha.cs:41)
UITweener.Sample (Single factor, Boolean isFinished) (at Assets/NGUI/Scripts/Tweening/UITweener.cs:282)
UITweener.ResetToBeginning () (at Assets/NGUI/Scripts/Tweening/UITweener.cs:349)
MsgDisplay.ScheduledMessageDisplay (System.String message, MESSAGESTYLE messageStyle, System.String spriteName) (at Assets/Scripts/GUI/MsgDisplay.cs:56)
MsgDisplay.DisplayMessage (System.String message, MESSAGESTYLE messageStyle, System.String spriteName) (at Assets/Scripts/GUI/MsgDisplay.cs:76)
PlayerMovement.CheckVelocity () (at Assets/Scripts/PlayerMovement.cs:2260)
PlayerMovement.Update () (at Assets/Scripts/PlayerMovement.cs:596)
***Code***
GameObject msg = msgs.Dequeue();
msgs.Enqueue(msg);
msg.SetActive(true);
msg.GetComponent<TweenScale>().ResetToBeginning();
msg.GetComponent<TweenScale>().enabled = true;
msg.GetComponent<TweenPosition>().ResetToBeginning();
msg.GetComponent<TweenPosition>().enabled = true;
msg.GetComponent<TweenAlpha>().ResetToBeginning();
msg.GetComponent<TweenAlpha>().enabled = true;
float timeToDisplay = SetMessageStyle(messageStyle, msg);
msg.GetComponentInChildren<UILabel>().text = message;