Answers for "How to use other c#script in other script in unity2d"

C#
7

how to reference function in unity

public GameObject myObject; //make ref. in inspector window

myObject.GetComponent<MyScript>().MyFunction();
Posted by: Guest on June-27-2020

Code answers related to "How to use other c#script in other script in unity2d"

C# Answers by Framework

Browse Popular Code Answers by Language