I used plenty of Update function among the game,will them affect performance?
Yes. Even if the method is empty, it takes a certain amount of time just for the engine to call the method to begin with. Since update is called every frame, avoid using it if it’s not necessary.
2 Likes
Literally, yes.
Practically, no.
Either way,
DO NOT OPTIMIZE CODE JUST BECAUSE… If you don’t have a problem, DO NOT OPTIMIZE!
If you DO have a problem, always start by using the profiler:
Window → Analysis → Profiler
Failure to use the profiler means you’re just guessing, making a mess of your code for no good reason.
https://discussions.unity.com/t/841163/2
Notes on optimizing UnityEngine.UI setups:
1 Like