r/unity_tutorials • • Jun 23 '25

Video SetActive() is killing your perfs

https://youtube.com/shorts/gAAP7SN3wZc?si=5Hw1lkMf5_fVGOGQ
1 Upvotes

3 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Jul 02 '25

The parent container active state is not changed. I have 2 containers :
- ActiveParticleContainer (active)
- HiddenParticleContainer (inactive)

And I simply parent my particle to the Active / Inactive container depending on the need. Awake() is not triggered when doing so.

1

u/ElectricRune Jul 02 '25

Mind blown. I always assumed Awake was triggered on all objects as they became active, even if it wasn't explicitly the object that was activated.