Editar

Compartilhar via


ThemeStateProperty Class

Definition

Class to store information about a Theme property that contains values per available state

public ref class ThemeStateProperty
[System.Serializable]
public class ThemeStateProperty
[<System.Serializable>]
type ThemeStateProperty = class
Public Class ThemeStateProperty
Inheritance
ThemeStateProperty
Attributes

Constructors

ThemeStateProperty()

Fields

ShaderPropertyID

Properties

Default

Default value to use for this property

Name

Name of property, useful for comparisons and editor displaying

ShaderPropertyName

Name of the shader property, defined in the TargetShader, to utilize for getting/setting values with this property, if applicable Supported by Themes which have AreShadersSupported set to true

StartValue

The starting value of this property

TargetShader

Shader to target for getting/setting values with this property, if applicable Supported by Themes which have AreShadersSupported set to true

Type

Type of value stored in this property

Values

List of values corresponding to every available state

Methods

GetShaderPropertyId()

Lazy loads shader property ID from Unity for the ShaderPropertyName

IsShaderPropertyType(ThemePropertyTypes)

Utility function that determines if the passed property type is supported for shader targeting

MigrateShaderData()

This temporary function will migrate over the previously set shader data (via the now deprecated properties) to the new TargetShader and ShaderPropertyName properties

Applies to