Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Majicpanda on April 19, 2014, 12:28:10 AM
-
I'm wondering what the performance issues are if you use Update() on a class that you define say a public Party myParty which is simply a List<T> of members in your party.
Update would be updating the healthbar slider to always be up to date opposed to the current model I have of directly informing the party UI any time health is changed. I tried using an event delegate system and wasn't happy with it, but it seems like there's some performance hits by updating widgets in Update like this. Can you confirm that?
-
There is a small performance hit of having a script with the Update() function in it, but it's nothing you will notice. The convenience of it far outweighs the downside.