Class InteractableRotationTheme
Theme Engine to control a GameObject's rotation based on state changes
Inheritance
InteractableRotationTheme
Assembly: cs.temp.dll.dll
public class InteractableRotationTheme : InteractableThemeBase
Constructors
Declaration
public InteractableRotationTheme()
Declaration
public InteractableRotationTheme()
Fields
Declaration
protected Transform hostTransform
Field Value
Type |
Description |
Transform |
|
Declaration
protected Transform hostTransform
Field Value
Type |
Description |
Transform |
|
Declaration
protected Vector3 originalLocalRotation
Field Value
Declaration
protected Vector3 originalRotation
Field Value
Declaration
protected Vector3 originalRotation
Field Value
Properties
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
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
Methods
Declaration
public override ThemeDefinition GetDefaultThemeDefinition()
Returns
Overrides
Declaration
public override ThemeDefinition GetDefaultThemeDefinition()
Returns
Overrides
Declaration
public override ThemePropertyValue GetProperty(ThemeStateProperty property)
Parameters
Returns
Overrides
Declaration
public override ThemePropertyValue GetProperty(ThemeStateProperty property)
Parameters
Returns
Overrides
Declaration
public override void Init(GameObject host, ThemeDefinition settings)
Parameters
Overrides
Declaration
public override void Init(GameObject host, ThemeDefinition settings)
Parameters
Overrides
Declaration
public override void Reset()
Overrides
Declaration
protected override void SetValue(ThemeStateProperty property, ThemePropertyValue value)
Parameters
Overrides
Declaration
public override void SetValue(ThemeStateProperty property, int index, float percentage)
Parameters
Overrides
Declaration
public override void SetValue(ThemeStateProperty property, int index, float percentage)
Parameters
Overrides