Question by
Tespy · Jan 20, 2021 at 03:04 PM ·
c#instantiate prefabinstantiationonenable
How do I make OnEnable execute for instantiated objects?
Upon testing things in my game, when I instantiate a prefab, its components' Awake method gets called, but not OnEnable.
I need OnEnable to trigger for all of those, so yeah...
Comment
Your answer
Follow this Question
Related Questions
Having trouble instantiating prefabs in my 2D game 1 Answer
Instantiating multiple interactive prefabs 0 Answers
Change value of a static variable multiple times in one script 2 Answers
Access singleton in OnEnable when it's initialized in Awake 3 Answers
Spawning a projectile in front of a player based on player rotation 1 Answer