Animate UI Materials
Modify and animate UI materials without creating a new material asset. Works with animation, serialization, nested prefabs, source control and material variants
by Fleeting Being
★★★★★ star rating
Price History +
This package exists to fill the lack of MaterialPropertyBlock in the UI system
It allows users to animate material properties, as you would with a MeshRenderer or a SpriteRenderer, in a clean and concise interface.
Setup is a breeze:
- Select your UI element (an Image for example)
- Add the GraphicMaterialOverride component
- Select a property to modify from the dropdown menu
- A child GameObject is created, with a GraphicPropertyOverride component
- Animate or modify this property as you wish
To remove the override, simply delete the child GameObject holding the override
The reason a child GameObject is required is because Unity cannot animate arrays or duplicate components