Cant change shader property on Skinned Mesh Renderer using MaterialPropertyBlock cannot change material color at runtime
This is a known issue. Currently Unity Playworks Plugin 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 aSkinnedMeshRenderer
if possible.