- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
starikcetin · Jun 28, 2015 at 01:46 AM ·
destroycomponentdisabledelete
Component Disabling vs. Destroying
Do they have differences in performance?
Please compare in both small (i.e. 5 gameobjects with 4 components each) and large scales (i.e. a stress test).
Comment
Answer by Addyarb · Jun 28, 2015 at 05:05 AM
They have a big difference in performance, depending on what you have running on the component. It has a lot to do with whether or not you're running InvokeRepeatings, Coroutines, etc.
Here's a great post to describe what to do in each situation.
Hope this answers your question! Good luck.
Thanks for answer but the link you gave is for whole gameobject, i'm talking about components.
If you read the accepted answer carefully, it gives the scenarios where you should either disable or destroy.