Struct AxisBase
Alternative to AxisState - a simplified structure to hold the definition of an input axis
Namespace: Cinemachine
Syntax
[Serializable]
public struct AxisBase
Fields
m_MaxValue
The maximum value for the axis
Declaration
[Tooltip("The maximum value for the axis")]
public float m_MaxValue
Field Value
Type | Description |
---|---|
Single |
m_MinValue
The minimum value for the axis
Declaration
[Tooltip("The minimum value for the axis")]
public float m_MinValue
Field Value
Type | Description |
---|---|
Single |
m_Value
The current value of the axis
Declaration
[Tooltip("The current value of the axis.")]
public float m_Value
Field Value
Type | Description |
---|---|
Single |
m_Wrap
If checked, then the axis will wrap around at the min/max values, forming a loop
Declaration
[Tooltip("If checked, then the axis will wrap around at the min/max values, forming a loop")]
public bool m_Wrap
Field Value
Type | Description |
---|---|
Boolean |
Methods
Validate()
Call this from OnValidate() to validate the fields of this structure (applies clamps, etc).
Declaration
public void Validate()