Skip to main content

Cant change shader property on Skinned Mesh Renderer using MaterialPropertyBlock cannot change material color at runtime

This is a known issue. Currently Luna doesn’t support GetPropertyBlock() for a SkinnedMeshRenderer, only for MeshRenderer.

Possible solutions:

  • Change the individual shader attribute directly instead of using GetPropertyBlock, e.g. cubeRenderer.material.SetColor("_Color", );
  • Use a MeshRenderer component instead of a SkinnedMeshRenderer if possible.