This is extremely annoying, have to switch to hdrp because the material isn’t really updating in lwrp, or particle effects. I activate for example emission and choose white and nothing happens. I have to click on play and exit and click on another material in order to see the change. Same goes with particle effects. Tried on two different new projects …
We have found the issue and fixed it in our master branch, back porting to the 19.3 release branch and will be going out in our next package, hopefully it will land in the 7.1.7 Universal RP package otherwise it will land early next year in the 7.2.0 package.
Unfortunately it did indeed miss the 7.1.7 package, but has been back-ported to a 7.1.8 package that should be releasing next week. Here is the Github PR
Yes, you’re right. I just did a quick check and I see that this is still an issue for Particle Lit, Particle SimpleLit and Particle Unlit shaders. Thanks for letting us know.
@phil_lira Sorry to necro a old Thread but I’m having the same issue on Unity 2021.2.10f URP 12.1.4 I’m changing a material prop block from a custom timeline playable. Here is the code I use :
public override void ProcessFrame(Playable playable, FrameData info, object playerData)
{
if (_meshRenderer != null)
{
Color color = matPropBlock.GetColor(_EmissionID);
time += info.deltaTime;
color = Color.LerpUnclamped(color, _emissionColor, (float)(time /playable.GetDuration()));
matPropBlock.SetColor(_EmissionID, color);
_meshRenderer.SetPropertyBlock(matPropBlock);
_meshRenderer.sharedMaterial.EnableKeyword("_EMISSION");
}
}
The enable keyword “hack” is the only thing that got the material to update.