ThemeStateProperty Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |