Struct AxisState.Recentering
Helper for automatic axis recentering
Inherited Members
Namespace: Unity.Cinemachine
Assembly: solution.dll
Syntax
[Obsolete("AxisState.Recentering is deprecated. Use InputAxis and InputAxisController instead")]
[Serializable]
public struct AxisState.Recentering
Constructors
Name | Description |
---|---|
Recentering(bool, float, float) | Constructor with specific field values |
Fields
Name | Description |
---|---|
m_Recentering |
How long it takes to reach destination once recentering has started |
m_Wait |
If no input has been detected, the camera will wait this long in seconds before moving its heading to the default heading. |
m_enabled | If checked, will enable automatic recentering of the axis. If FALSE, recenting is disabled. |
Methods
Name | Description |
---|---|
Cancel |
Cancel any recenetering in progress. |
Copy |
Copy Recentering state from another Recentering component. |
Do |
Bring the axis back to the centered state (only if enabled). |
Recenter |
Skip the wait time and start recentering now (only if enabled). |
Validate() | Call this from OnValidate() |