Struct AxisBase
This is a deprecated component. Use InputAxis instead.
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[Obsolete("AxisBase has been deprecated. Use InputAxis instead.")]
[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 |
---|---|
float |
m_MinValue
The minimum value for the axis
Declaration
[Tooltip("The minimum value for the axis")]
public float m_MinValue
Field Value
Type | Description |
---|---|
float |
m_Value
The current value of the axis
Declaration
[Tooltip("The current value of the axis.")]
public float m_Value
Field Value
Type | Description |
---|---|
float |
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 |
---|---|
bool |
Methods
Validate()
Call this from OnValidate() to validate the fields of this structure (applies clamps, etc).
Declaration
public void Validate()