mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fix: Snapshot Interpolation Demo: assign material color to instanced material, fixes material asset changing color permanently
This commit is contained in:
parent
f92942bb5f
commit
db50c39b91
@ -84,7 +84,7 @@ void Update()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// color material while catching up
|
// color material while catching up
|
||||||
render.sharedMaterial.color = lastCatchup > 0
|
render.material.color = lastCatchup > 0
|
||||||
? catchupColor
|
? catchupColor
|
||||||
: defaultColor;
|
: defaultColor;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user