Struct MaterialTargetConfig
Configuration for a material property target. Links a MaterialId to a specific Renderer, material slot, and shader property. Stores cached material/shader references for detecting runtime changes.
Inherited Members
Namespace: Serenity.ProceduralExpression.Infrastructure.Services
Assembly: Serenity.UnityProceduralExpression.Infrastructure.dll
Syntax
public struct MaterialTargetConfig
Fields
CachedMaterial
Cached material reference from registration time (for detecting material changes).
Declaration
public Material CachedMaterial
Field Value
| Type | Description |
|---|---|
| Material |
CachedShader
Cached shader reference from registration time (for detecting shader changes).
Declaration
public Shader CachedShader
Field Value
| Type | Description |
|---|---|
| Shader |
ColorPropertyId
Cached shader property ID for efficient access.
Declaration
public int ColorPropertyId
Field Value
| Type | Description |
|---|---|
| int |
MaterialIndex
Material slot index for multi-material renderers.
Declaration
public int MaterialIndex
Field Value
| Type | Description |
|---|---|
| int |
OriginalColor
The original color of the property (for blending).
Declaration
public Color OriginalColor
Field Value
| Type | Description |
|---|---|
| Color |
Renderer
The renderer to apply the property to.
Declaration
public Renderer Renderer
Field Value
| Type | Description |
|---|---|
| Renderer |