Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Krzycho on November 18, 2015, 09:00:05 AM
-
Hey,
Why do I get "Expensive delayed cost" on:
UITweener.Update(): Static Collider.Move and Static Collider.Modify
on every single update in profiler?
There is also GC Alloc once for a while on UITweener.Update(), which I also don't like.
-
You need to add a rigidbody somewhere in the UI's root hierarchy. NGUI does it by default -- generally placing it on the first panel it creates. If you remove that rigidbody, you will see this warning in Unity.
-
Thanks for the tip but it doesn't work to me. I've added RigidBody to the most top UIPanel in the hierarchy and there is no changes.
How about the GC stuff? Are you going to clean it up it the nearest future?
-
Then what's the tween on? The Unity is telling you that you are moving a collider that doesn't have a rigidbody on it. If it was a part of the UI hierarchy, you wouldn't see this after adding a rigidbody -- so the question becomes, what is that UITween on? Check, and make sure you have a rigidbody.