I have a material with a wipe transition shader. In that shader I have a custom property _blendPos that I use to move the shader effect, like this:
It works fine on a 2D Sprite.
But if i try to assign the same shader/material to an Image component, it doesn't work:
Trying to animate an Image component material/shader
Code (csharp):
But if i try to assign the same shader/material to an Image component, it doesn't work:
Code (csharp):
- // Start()
- myImageMaterial = GetComponent<Image>().material;
- // Update ()