Answers for "how to reference gameobject through script reference unity"

C#
1

unity get script from gameobject

obj.GetComponent<Script>();
Posted by: Guest on April-08-2021
0

how to have referecne to script in unity

private GameObject player;
player.GetComponent<PlayerMovement>().enabled = false;
Posted by: Guest on September-03-2021

Code answers related to "how to reference gameobject through script reference unity"

C# Answers by Framework

Browse Popular Code Answers by Language