Referencing Scripts and GameObjects in Unity

A few basic ways to get references in Unity. Directly- GetComponent 0:38 /GetComponentInChildren /GetComponentInParent Public Variable- 3:00 Find- 5:01 Find 5:39 (by name) FindWithTag 6:14 (by tag) FindObjectOfType 6:51 (by component) Interaction- 7:15 OnCollisionEnter /OnTriggerEnter
Home
/
Indie Game Developers
/
SpawnCampGames
/
Referencing Scripts and GameObjects in Unity

More from SpawnCampGames