Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

reference to another script unity

SomeScript script = GetComponent<SomeScript>();
// alternatively, just make it a field:
[SerializeField] protected SomeScript script;
 
PREVIOUS NEXT
Tagged: #reference #script #unity
ADD COMMENT
Topic
Name
2+6 =