-
Notifications
You must be signed in to change notification settings - Fork 0
π Shader Property Support
Dennis edited this page Feb 2, 2025
·
5 revisions
Unity UI Material Modifier allows you to modify Shader Properties dynamically without modifying the shader itself. This page explains the supported shader property types and how to use them correctly.
The following types of shader properties can be modified:
| Type | Example Name | Description |
|---|---|---|
Float |
_Saturation |
Controls saturation level |
Int |
_Mode |
Defines shader mode selection |
Color |
_Color |
Adjusts the color tint |
Vector4 |
_Offset |
Controls texture UV offset |
Float properties are used for continuous values, such as opacity, contrast, or blur strength.
_Saturation ("Saturation", Range(0, 2)) = 1UIMaterialModifier.SetFloat("_Saturation", 1.5f);π¦ Installation | π Getting Started | π API Reference