- Home /
Question by
Alanimator · Sep 09, 2012 at 03:08 PM ·
meshswitch characters
Switching character mesh
How do i go about switching my character mesh in script . i have this variable
var Charactermesh1 : UnityEngine.Mesh;
if a button is pressed I want the mesh to change to what is has been set to in the inspector
something like
if(GUI.Button (Rect (100,340,20,40), ""))
// function to change mesh
Comment
it could be much better to simply make another whole thing, that has that new character. then, just swap the objects.
Your answer
Follow this Question
Related Questions
How to load/save 'Chunks' near cam for mesh terrain? 0 Answers
How do I sync a mesh over network? (Photon) 1 Answer
How to edit TextMesh.mesh so I can change vertex colors? 0 Answers
Grouping vertices? 1 Answer
Project a shape using a mesh 0 Answers