- Home /
Question by
ugurtunakoca · Oct 09, 2021 at 02:14 PM ·
3dmaterialmeshrendererskinnedmeshrenderer
How to change material of a SkinnedMeshRenderer?
Hi, I tried theese codes: " var MaterialG=GetComponent().materials[0]; MaterialG=AMaterial; " , " GetComponent().materials[0]=AMaterial; " " GetComponent().sharedMaterials[0]=AMaterial " ` Simply nothing happens and I've got no errors. Also I can change colors of the material ( with GetComponent().materials[0].color=Color.black).
p2.png
(23.0 kB)
Comment
Your answer
Follow this Question
Related Questions
DAY and NIGHT Texture on Planet Earth 0 Answers
Skinned Mesh Renderer - Adding/Removing Materials via C# 0 Answers
Why does reading MeshRenderer.material change MeshRenderer.sharedMaterial? 1 Answer
Change GameObject material/color animated spreading from hitting point 1 Answer
Changing gameobject material via mouse click not working 1 Answer