Struct UnityShaderColorPropertyResolver.ResolvedProperty
Result of a color property resolution attempt.
Inherited Members
Namespace: Serenity.ProceduralExpression.Infrastructure.Services
Assembly: Serenity.UnityProceduralExpression.Infrastructure.dll
Syntax
public struct UnityShaderColorPropertyResolver.ResolvedProperty
Fields
IsValid
True if a valid color property was found.
Declaration
public bool IsValid
Field Value
| Type | Description |
|---|---|
| bool |
PropertyId
Cached Shader.PropertyToID for efficient runtime access.
Declaration
public int PropertyId
Field Value
| Type | Description |
|---|---|
| int |
PropertyName
The shader property name (e.g., "_BaseColor", "_Color").
Declaration
public string PropertyName
Field Value
| Type | Description |
|---|---|
| string |
Properties
Invalid
Creates an invalid result.
Declaration
public static UnityShaderColorPropertyResolver.ResolvedProperty Invalid { get; }
Property Value
| Type | Description |
|---|---|
| UnityShaderColorPropertyResolver.ResolvedProperty |
Methods
Valid(string, int)
Creates a valid result.
Declaration
public static UnityShaderColorPropertyResolver.ResolvedProperty Valid(string propertyName, int propertyId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyName | |
| int | propertyId |
Returns
| Type | Description |
|---|---|
| UnityShaderColorPropertyResolver.ResolvedProperty |