Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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
 
PREVIOUS NEXT
Tagged: #add #componet #gameobject #throgh #code #unity
ADD COMMENT
Topic
Name
8+4 =