Skip to content

πŸ“Œ Shader Property Support

Dennis edited this page Feb 2, 2025 · 5 revisions

🎨 Shader Property Support

πŸ”Ή Overview

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.

πŸ“Œ Supported Shader Property Types

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

πŸ”Ή Using Float Properties

Float properties are used for continuous values, such as opacity, contrast, or blur strength.

πŸ›  Example Shader Property (Float)

_Saturation ("Saturation", Range(0, 2)) = 1

πŸ”Ή Setting Float in Code

UIMaterialModifier.SetFloat("_Saturation", 1.5f);

πŸ“¦ Installation | πŸš€ Getting Started | πŸ›  API Reference