페이지

2018년 8월 26일 일요일

Awake() not called when inactive gameobject

if a prefab is inactive, the prefab Awake() not called after instantiated.

 set gameobject active after instantiating it or set prefab active.

 but you can call your own method in inactive gameobject.
 Inactive Gameobject means that there is nothing in unity scene world. Unity API not called. Awake(), Start(), Update(), OnCollision() and so on...