Answers for "how to add a script to another script in c# unity"

C#
2

reference to another script unity

SomeScript script = GetComponent<SomeScript>();
// alternatively, just make it a field:
[SerializeField] protected SomeScript script;
Posted by: Guest on April-20-2021

Code answers related to "how to add a script to another script in c# unity"

C# Answers by Framework

Browse Popular Code Answers by Language