mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class InteractableRotationTheme

    Theme Engine to control a GameObject's rotation based on state changes

    Inheritance
    Object
    InteractableThemeBase
    InteractableRotationTheme
    Inherited Members
    InteractableThemeBase.Types
    InteractableThemeBase.Name
    InteractableThemeBase.StateProperties
    InteractableThemeBase.Properties
    InteractableThemeBase.Host
    InteractableThemeBase.Ease
    InteractableThemeBase.Loaded
    InteractableThemeBase.IsEasingSupported
    InteractableThemeBase.AreShadersSupported
    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 InteractableRotationTheme : InteractableThemeBase

    Constructors

    InteractableRotationTheme()

    Declaration
    public InteractableRotationTheme()

    InteractableRotationTheme()

    Declaration
    public InteractableRotationTheme()

    Fields

    hostTransform

    Declaration
    protected Transform hostTransform
    Field Value
    Type Description
    Transform

    hostTransform

    Declaration
    protected Transform hostTransform
    Field Value
    Type Description
    Transform

    originalLocalRotation

    Declaration
    protected Vector3 originalLocalRotation
    Field Value
    Type Description
    Vector3

    originalRotation

    Declaration
    protected Vector3 originalRotation
    Field Value
    Type Description
    Vector3

    originalRotation

    Declaration
    protected Vector3 originalRotation
    Field Value
    Type Description
    Vector3

    Properties

    IsLocalRotation

    If true, the theme manipulate the target's local rotation. Otherwise, the theme will control the world space rotation.

    Declaration
    public bool IsLocalRotation { get; }
    Property Value
    Type Description
    Boolean

    IsRelativeRotation

    If true, the theme rotation value will be added to the initial Gameobject's rotation. Otherwise, it will set directly as absolute euler angles.

    Declaration
    public bool IsRelativeRotation { get; }
    Property Value
    Type Description
    Boolean

    Methods

    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()

    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 settings)
    Parameters
    Type Name Description
    GameObject host
    ThemeDefinition settings
    Overrides
    InteractableThemeBase.Init(GameObject, ThemeDefinition)

    Init(GameObject, ThemeDefinition)

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

    Reset()

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

    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
      • InteractableRotationTheme()
      • InteractableRotationTheme()
    • Fields
      • hostTransform
      • hostTransform
      • originalLocalRotation
      • originalRotation
      • originalRotation
    • Properties
      • IsLocalRotation
      • IsRelativeRotation
    • Methods
      • GetDefaultThemeDefinition()
      • GetDefaultThemeDefinition()
      • GetProperty(ThemeStateProperty)
      • GetProperty(ThemeStateProperty)
      • Init(GameObject, ThemeDefinition)
      • Init(GameObject, ThemeDefinition)
      • Reset()
      • SetValue(ThemeStateProperty, ThemePropertyValue)
      • SetValue(ThemeStateProperty, Int32, Single)
      • SetValue(ThemeStateProperty, Int32, Single)
    Back to top Generated by DocFX