-
Notifications
You must be signed in to change notification settings - Fork 0
π Getting Started
Dennis edited this page Feb 2, 2025
·
6 revisions
- Select a UI component in Unity (e.g.,
Image,TextMeshProUGUI) - Open the
Inspectorpanel - Click
Add Componentand search forUIMaterialModifier
- Ensure the UI component's
Materialuses a shader that supports modification. - Example:
UI/Unlit/Transparent
You can modify properties directly in the Inspector:
-
Color (
_Color) -
Transparency (
_Alpha) -
Saturation (
_Saturation) -
Contrast (
_Contrast)
Or modify them via script:
using Dennis.UI;
CustomUI customUI = myGameObject.GetComponent<CustomUI>();
customUI.SetFloat("_Saturation", 1.5f);
customUI.SetColor("_Color", Color.red);π¦ Installation | π Shader Property Support | π API Reference