InteractableRotationTheme 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.
Theme Engine to control a GameObject's rotation based on state changes
public ref class InteractableRotationTheme : Microsoft::MixedReality::Toolkit::UI::InteractableThemeBase
public class InteractableRotationTheme : Microsoft.MixedReality.Toolkit.UI.InteractableThemeBase
type InteractableRotationTheme = class
inherit InteractableThemeBase
Public Class InteractableRotationTheme
Inherits InteractableThemeBase
- Inheritance
Constructors
InteractableRotationTheme() |
Fields
hostTransform | |
originalLocalRotation | |
originalRotation | |
originalStateValues | (Inherited from InteractableThemeBase) |
Properties
AreShadersSupported |
Indicates whether the current Theme engine implementation supports shader targeting on state properties (Inherited from InteractableThemeBase) |
Ease |
Defines how to ease between values during state changes (Inherited from InteractableThemeBase) |
Host |
GameObject initialized with this ThemeEngine and being targeted based on state changes (Inherited from InteractableThemeBase) |
IsEasingSupported |
Indicates whether the current Theme engine implementation supports easing between state values (Inherited from InteractableThemeBase) |
IsLocalRotation |
If true, the theme manipulate the target's local rotation. Otherwise, the theme will control the world space rotation. |
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. |
Loaded |
True if Theme Engine has been initialized, false otherwise (Inherited from InteractableThemeBase) |
Name |
Name of Theme Engine (Inherited from InteractableThemeBase) |
Properties |
List of global Theme Engine properties (Inherited from InteractableThemeBase) |
StateProperties |
List of Properties with values per state (Inherited from InteractableThemeBase) |
Types |
Types of component this Theme Engine will target on the initialized GameObject or related GameObjects (Inherited from InteractableThemeBase) |
Methods
GetDefaultThemeDefinition() |
Generates the default theme definition configuration for the current theme implementation |
GetProperty(ThemeStateProperty) |
Get the current property value for the provided state property |
GetThemeProperty(Int32) | (Inherited from InteractableThemeBase) |
Init(GameObject, ThemeDefinition) |
Initialize current Theme Engine with given configuration and target the provided GameObject |
LerpFloat(Single, Single, Single) | (Inherited from InteractableThemeBase) |
LerpInt(Int32, Int32, Single) | (Inherited from InteractableThemeBase) |
OnUpdate(Int32, Boolean) |
Update ThemeEngine for given state based on Theme logic. Check, sets, and possibly eases values based on given state (Inherited from InteractableThemeBase) |
Reset() |
Resets properties on Host GameObject to their original values when Init() was called for this theme engine. Useful for reverting changes done by this theme engine. |
SetValue(ThemeStateProperty, Int32, Single) |
Instruct theme to set value for current property with given index state and at given lerp percentage |
SetValue(ThemeStateProperty, ThemePropertyValue) |
Instruct theme to set value for current property with ThemePropertyValue value provided |