Answers for "add a component in the script unity"

C#
8

unity add component

//Use the AddComponent<T>() Method to add a component to your gameobject
GameObject gameObject;

gameObject.AddComponent<BoxCollider>(); //Component has to be an actual Unity component
Posted by: Guest on May-24-2020

Code answers related to "add a component in the script unity"

C# Answers by Framework

Browse Popular Code Answers by Language