Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to reference function in unity

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

myObject.GetComponent<MyScript>().MyFunction();
Comment

PREVIOUS NEXT
Code Example
Csharp :: random seed in c# 
Csharp :: unity c# delay function 
Csharp :: unity hub black screen 
Csharp :: c# override index operator 
Csharp :: net use delete 
Csharp :: remove last comma from string c# 
Csharp :: c# create file 
Csharp :: C# datetime.now to string only numbers 
Csharp :: unity hide in inspector 
Csharp :: how to generate random numbers in c# 
Csharp :: c# clear a textbox 
Csharp :: c# round number 
Csharp :: repeat 10 timesw c# 
Csharp :: c# start file 
Csharp :: excute bash and other linux scripts from c# 
Csharp :: get date value from datepicker c# 
Csharp :: c# array map 
Csharp :: convert int to short c# 
Csharp :: list with two values c# 
Csharp :: hide datagrid column c# 
Csharp :: function in Razor Pages 
Csharp :: list of string to string c# 
Csharp :: hashing a file in C# 
Csharp :: C# array index tostring 
Csharp :: how to split concat string c# 
Csharp :: palindrome number c# 
Csharp :: Cursor Lock and Visible in Unity 
Csharp :: visual studio c# color dialog 
Csharp :: get all child gameObject of gameObject C# 
Csharp :: create instance of class given class name string c# 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =