Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to reference function in unity

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

myObject.GetComponent<MyScript>().MyFunction();
Source by forum.unity.com #
 
PREVIOUS NEXT
Tagged: #reference #function #unity
ADD COMMENT
Topic
Name
8+3 =