As you guys know, GameObject can be active or inactive by setting a value in GameObject.
While working on it, I got a question if changing a value states (active, inactive) could invoke GC a lot than it does not.
Can anyone explain this?
As you guys know, GameObject can be active or inactive by setting a value in GameObject.
While working on it, I got a question if changing a value states (active, inactive) could invoke GC a lot than it does not.
Can anyone explain this?
GC in unity is called automatically and for your question the answer is NO, it will not invoke GC if you active-inactive a gameobject frequently.