Answers for "Add component object to gameobject unity"

C#
9

Add component object to gameobject unity

//to add a new ridgidbody
gameobject.AddComponent<Rigidbody>();
//to add a new meshCollider
gameobject.AddComponent<MeshCollider>();
//Original answer by MakerBenjammin6, cleanup by me.
Posted by: Guest on April-30-2020
-1

how to add a componet to a gameobject throgh code unity

//This uses C# and unity
//to add a ridgidbody
gameobject.addComponet<ridgidbody>();
//to add a meshCollider
gameobject.addComponet<MeshCollider>();
//check out my profile
Posted by: Guest on March-29-2020

Code answers related to "Add component object to gameobject unity"

C# Answers by Framework

Browse Popular Code Answers by Language