Does ObjectPool.Instantiate Call OnEnable or other on spawn method?

airoll

Member
Hello, I would like to ask if ObjectPool.Instantiate will call OnEnable on each component in the instantiated game object or will otherwise call a spawn method? I am trying to write a custom script that does some initialization upon spawning but the implementation of ObjectPool.Instantiate is hidden so I'm not sure exactly what it is doing under the hood.
 
I believe the answer is yes, because the gameobjects are disabled and then become enabled. @Justin may able to confirm this.
 
Top