mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class InteractableShaderTheme

    Theme Engine to control the value of a particular Shader Property based on state changes Targets the first Renderer component on the initialized GameObject and use MaterialPropertyBlocks

    Inheritance
    Object
    InteractableThemeBase
    InteractableShaderTheme
    InteractableColorChildrenTheme
    InteractableColorTheme
    InteractableTextureTheme
    Inherited Members
    InteractableThemeBase.Types
    InteractableThemeBase.Name
    InteractableThemeBase.StateProperties
    InteractableThemeBase.Properties
    InteractableThemeBase.Host
    InteractableThemeBase.Ease
    InteractableThemeBase.Loaded
    InteractableThemeBase.IsEasingSupported
    InteractableThemeBase.CreateTheme(Type)
    InteractableThemeBase.CreateAndInitTheme(ThemeDefinition, GameObject)
    InteractableThemeBase.OnUpdate(Int32, Boolean)
    InteractableThemeBase.LerpFloat(Single, Single, Single)
    InteractableThemeBase.LerpInt(Int32, Int32, Single)
    InteractableThemeBase.originalStateValues
    InteractableThemeBase.Reset()
    InteractableThemeBase.GetThemeProperty(Int32)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.UI
    Assembly: cs.temp.dll.dll
    Syntax
    public class InteractableShaderTheme : InteractableThemeBase

    Constructors

    InteractableShaderTheme()

    Declaration
    public InteractableShaderTheme()

    InteractableShaderTheme()

    Declaration
    public InteractableShaderTheme()

    Fields

    DefaultShaderProperty

    Declaration
    protected const string DefaultShaderProperty = "_Color"
    Field Value
    Type Description
    String

    DefaultShaderProperty

    Declaration
    protected const string DefaultShaderProperty = "_Color"
    Field Value
    Type Description
    String

    propertyBlock

    Declaration
    protected MaterialPropertyBlock propertyBlock
    Field Value
    Type Description
    MaterialPropertyBlock

    propertyBlock

    Declaration
    protected MaterialPropertyBlock propertyBlock
    Field Value
    Type Description
    MaterialPropertyBlock

    renderer

    Declaration
    protected Renderer renderer
    Field Value
    Type Description
    Renderer

    renderer

    Declaration
    protected Renderer renderer
    Field Value
    Type Description
    Renderer

    shaderProperties

    Declaration
    protected List<ThemeStateProperty> shaderProperties
    Field Value
    Type Description
    List<ThemeStateProperty>

    shaderProperties

    Declaration
    protected List<ThemeStateProperty> shaderProperties
    Field Value
    Type Description
    List<ThemeStateProperty>

    Properties

    AreShadersSupported

    Declaration
    public override bool AreShadersSupported { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    InteractableThemeBase.AreShadersSupported

    AreShadersSupported

    Declaration
    public override bool AreShadersSupported { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    InteractableThemeBase.AreShadersSupported

    Methods

    GetColor(GameObject, Int32)

    Declaration
    [Obsolete("GetColor is no longer supported. Access the material block directly on the GameObject provided.")]
    public static Color GetColor(GameObject host, int propId)
    Parameters
    Type Name Description
    GameObject host
    Int32 propId
    Returns
    Type Description
    Color

    GetColor(GameObject, Int32)

    Declaration
    [Obsolete("GetColor is no longer supported. Access the material block directly on the GameObject provided.")]
    public static Color GetColor(GameObject host, int propId)
    Parameters
    Type Name Description
    GameObject host
    Int32 propId
    Returns
    Type Description
    Color

    GetDefaultThemeDefinition()

    Declaration
    public override ThemeDefinition GetDefaultThemeDefinition()
    Returns
    Type Description
    ThemeDefinition
    Overrides
    InteractableThemeBase.GetDefaultThemeDefinition()

    GetDefaultThemeDefinition()

    Declaration
    public override ThemeDefinition GetDefaultThemeDefinition()
    Returns
    Type Description
    ThemeDefinition
    Overrides
    InteractableThemeBase.GetDefaultThemeDefinition()

    GetFloat(GameObject, Int32)

    Declaration
    [Obsolete("GetFloat is no longer supported. Access the material block directly on the GameObject provided.")]
    public static float GetFloat(GameObject host, int propId)
    Parameters
    Type Name Description
    GameObject host
    Int32 propId
    Returns
    Type Description
    Single

    GetFloat(GameObject, Int32)

    Declaration
    [Obsolete("GetFloat is no longer supported. Access the material block directly on the GameObject provided.")]
    public static float GetFloat(GameObject host, int propId)
    Parameters
    Type Name Description
    GameObject host
    Int32 propId
    Returns
    Type Description
    Single

    GetProperty(ThemeStateProperty)

    Declaration
    public override ThemePropertyValue GetProperty(ThemeStateProperty property)
    Parameters
    Type Name Description
    ThemeStateProperty property
    Returns
    Type Description
    ThemePropertyValue
    Overrides
    InteractableThemeBase.GetProperty(ThemeStateProperty)

    GetProperty(ThemeStateProperty)

    Declaration
    public override ThemePropertyValue GetProperty(ThemeStateProperty property)
    Parameters
    Type Name Description
    ThemeStateProperty property
    Returns
    Type Description
    ThemePropertyValue
    Overrides
    InteractableThemeBase.GetProperty(ThemeStateProperty)

    Init(GameObject, ThemeDefinition)

    Declaration
    public override void Init(GameObject host, ThemeDefinition definition)
    Parameters
    Type Name Description
    GameObject host
    ThemeDefinition definition
    Overrides
    InteractableThemeBase.Init(GameObject, ThemeDefinition)

    Init(GameObject, ThemeDefinition)

    Declaration
    public override void Init(GameObject host, ThemeDefinition definition)
    Parameters
    Type Name Description
    GameObject host
    ThemeDefinition definition
    Overrides
    InteractableThemeBase.Init(GameObject, ThemeDefinition)

    SetValue(ThemeStateProperty, ThemePropertyValue)

    Declaration
    protected override void SetValue(ThemeStateProperty property, ThemePropertyValue value)
    Parameters
    Type Name Description
    ThemeStateProperty property
    ThemePropertyValue value
    Overrides
    InteractableThemeBase.SetValue(ThemeStateProperty, ThemePropertyValue)

    SetValue(ThemeStateProperty, Int32, Single)

    Declaration
    public override void SetValue(ThemeStateProperty property, int index, float percentage)
    Parameters
    Type Name Description
    ThemeStateProperty property
    Int32 index
    Single percentage
    Overrides
    InteractableThemeBase.SetValue(ThemeStateProperty, Int32, Single)

    SetValue(ThemeStateProperty, Int32, Single)

    Declaration
    public override void SetValue(ThemeStateProperty property, int index, float percentage)
    Parameters
    Type Name Description
    ThemeStateProperty property
    Int32 index
    Single percentage
    Overrides
    InteractableThemeBase.SetValue(ThemeStateProperty, Int32, Single)
    In This Article
    • Constructors
      • InteractableShaderTheme()
      • InteractableShaderTheme()
    • Fields
      • DefaultShaderProperty
      • DefaultShaderProperty
      • propertyBlock
      • propertyBlock
      • renderer
      • renderer
      • shaderProperties
      • shaderProperties
    • Properties
      • AreShadersSupported
      • AreShadersSupported
    • Methods
      • GetColor(GameObject, Int32)
      • GetColor(GameObject, Int32)
      • GetDefaultThemeDefinition()
      • GetDefaultThemeDefinition()
      • GetFloat(GameObject, Int32)
      • GetFloat(GameObject, Int32)
      • GetProperty(ThemeStateProperty)
      • GetProperty(ThemeStateProperty)
      • Init(GameObject, ThemeDefinition)
      • Init(GameObject, ThemeDefinition)
      • SetValue(ThemeStateProperty, ThemePropertyValue)
      • SetValue(ThemeStateProperty, Int32, Single)
      • SetValue(ThemeStateProperty, Int32, Single)
    Back to top Generated by DocFX