Change mesh at runtime?

How would I go about randomly assigning a mesh at runtime if it’s even possible? I have some hair props that I want to randomly select from a pool of at runtime. Keep in mind, I want to change the mesh on the Skinned Mesh Renderer. I know how to change the game object but I don’t want to do that if I can just change the mesh. Thanks!

You’d use a variable of type Mesh and use GetComponent(SkinnedMeshRenderer).sharedMesh = myMeshVariable.

–Eric

Thanks! I was getting close.