Advertisement

Unity Tutorial Quick Tip: Easily grab a reference to an object when prefab enters the scene

Unity Tutorial Quick Tip: Easily grab a reference to an object when prefab enters the scene Easily grab a reference to an object when prefab enters the scene
Instantiated Objects can not cache references to other objects/scripts prior to being instantiated.

Methods used:
1. FindObjectOfType
2. GameObject.Find("objectName");
3. Static instance reference

Unity Tutorial,Unity Reference Prefab,Unity Prefab Find Object,

Post a Comment

0 Comments