I’m attempting to change the texture of my player model but I can’t seem to access the element I need. Anyone know how this is done?
Here is a snippet. There is no error but it’s not working either:
SkinnedMeshRenderer smr = transform.FindChild("playerModel").GetComponent<SkinnedMeshRenderer>();
Texture2D texture = (Texture2D)Resources.Load ("Armor Textures/" + textureName);
smr.material.SetTexture (7,texture); //not working...