Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: sulbon on November 25, 2014, 05:22:11 AM
-
>:(
But the 'LateUpdate' in my script on the same GameObject(with UIPanel) is not called.
Could somebody tell my why?
-
Because Unity calls it, since it's a monobehavior. See http://docs.unity3d.com/ScriptReference/MonoBehaviour.html
-
Hi Nicki, I think I didn't make the question clear.
The 'Update' and 'LateUpdate' are called every frame when Application is playing. It is for sure and I can totally see it.
What I don't see is what magic triggers the UIPanel.LateUpdate not during Game-Running, but when the Animation is editing(in Animation Tab).
-
Oh. I believe it will be called when the scene gets updated for whatever reason.
-
[ExecuteInEditMode] above the class name is what makes it possible.
-
Thank you ArenMook and Nicki. [ExecuteInEditMode] works. ;D