mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class ScaleOffsetColorTheme

    Theme Engine to control initialized GameObject's scale, local position offset, and color based on state changes For color, will try to set on first available text object in order of TextMesh, Text, TextMeshPro, and TextMeshProUGUI If none found, then Theme will target first Renderer component available and target the associated shader property found in ThemeDefinition

    Inheritance
    Object
    InteractableThemeBase
    InteractableShaderTheme
    InteractableColorTheme
    ScaleOffsetColorTheme
    Inherited Members
    InteractableColorTheme.DefaultShaderProperty
    InteractableColorTheme.TryGetTextColor(ThemeStateProperty, Color)
    InteractableColorTheme.TryGetTextMeshColor(ThemeStateProperty, Color)
    InteractableColorTheme.TryGetTextMeshProColor(ThemeStateProperty, Color)
    InteractableColorTheme.TryGetTextMeshProUGUIColor(ThemeStateProperty, Color)
    InteractableColorTheme.TryGetRendererColor(ThemeStateProperty, Color)
    InteractableColorTheme.TrySetTextColor(Color, ThemeStateProperty, Int32, Single)
    InteractableColorTheme.TrySetTextMeshColor(Color, ThemeStateProperty, Int32, Single)
    InteractableColorTheme.TrySetTextMeshProColor(Color, ThemeStateProperty, Int32, Single)
    InteractableColorTheme.TrySetTextMeshProUGUIColor(Color, ThemeStateProperty, Int32, Single)
    InteractableColorTheme.TrySetRendererColor(Color, ThemeStateProperty, Int32, Single)
    InteractableColorTheme.HasTextComponentOnObject(GameObject)
    InteractableShaderTheme.AreShadersSupported
    InteractableShaderTheme.propertyBlock
    InteractableShaderTheme.shaderProperties
    InteractableShaderTheme.renderer
    InteractableShaderTheme.GetFloat(GameObject, Int32)
    InteractableShaderTheme.GetColor(GameObject, Int32)
    InteractableShaderTheme.SetValue(ThemeStateProperty, ThemePropertyValue)
    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.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 ScaleOffsetColorTheme : InteractableColorTheme

    Constructors

    ScaleOffsetColorTheme()

    Declaration
    public ScaleOffsetColorTheme()

    ScaleOffsetColorTheme()

    Declaration
    public ScaleOffsetColorTheme()

    Fields

    hostTransform

    Declaration
    protected Transform hostTransform
    Field Value
    Type Description
    Transform

    hostTransform

    Declaration
    protected Transform hostTransform
    Field Value
    Type Description
    Transform

    originalPosition

    Declaration
    protected Vector3 originalPosition
    Field Value
    Type Description
    Vector3

    originalPosition

    Declaration
    protected Vector3 originalPosition
    Field Value
    Type Description
    Vector3

    originalScale

    Declaration
    protected Vector3 originalScale
    Field Value
    Type Description
    Vector3

    originalScale

    Declaration
    protected Vector3 originalScale
    Field Value
    Type Description
    Vector3

    Methods

    GetDefaultThemeDefinition()

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

    GetDefaultThemeDefinition()

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

    GetProperty(ThemeStateProperty)

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

    GetProperty(ThemeStateProperty)

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

    Init(GameObject, ThemeDefinition)

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

    Init(GameObject, ThemeDefinition)

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

    Reset()

    Declaration
    public override void Reset()
    Overrides
    InteractableThemeBase.Reset()

    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
    InteractableColorTheme.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
    InteractableColorTheme.SetValue(ThemeStateProperty, Int32, Single)
    In This Article
    • Constructors
      • ScaleOffsetColorTheme()
      • ScaleOffsetColorTheme()
    • Fields
      • hostTransform
      • hostTransform
      • originalPosition
      • originalPosition
      • originalScale
      • originalScale
    • Methods
      • GetDefaultThemeDefinition()
      • GetDefaultThemeDefinition()
      • GetProperty(ThemeStateProperty)
      • GetProperty(ThemeStateProperty)
      • Init(GameObject, ThemeDefinition)
      • Init(GameObject, ThemeDefinition)
      • Reset()
      • SetValue(ThemeStateProperty, Int32, Single)
      • SetValue(ThemeStateProperty, Int32, Single)
    Back to top Generated by DocFX