Why does NOT Color.Leap work on mobile devices?
Hi
I try to change a material emission color like a following codes.
private Color emissionOff = new Color(0f, 0f, 0f, 1f);
private Color emissionOn = new Color(1f, 1f, 1f, 1f);
void MyChangeMethod () {
// Update myTime
myMaterial.EnableKeyword("_EMISSION");
myMaterial.SetColor ("_EmissionColor", Color.Lerp (emissionOff, emissionOn, myTime);
}
And I use this material with Standard shader.
It works on Unity Editor, but not work on Android and iOS devices.
Someone knows reasons or solutions?
Thanks!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612074452im_/https://answers.unity.com/themes/thub/images/avi.jpg)