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
Also in C#:
- unity set material color
- c# integer to bit string
- add row and columns to grid wpf in code
- c# one line set
- c# udpclient receive buffer size
- how to work with ascii in c#
- c# implement a superclass in subclass
- asp.net list all files in folder
- change z value unity
- C# get object property name
- c# stop loop in method
- functions unity
- Random number unity
- unity draw wire square
- unity create gameobject
- asp.net model display name
- unity delete specific text in a string
- c# multiple catch exceptions
- random number generator c#
- isdaylightsavingtime in c#
- c# is not equal to
- string to uint c#
- csharp first element of array
- c# param exception