Scripting API

AxisState

struct in Unity.Cinemachine · Unity.Cinemachine

Not in Unity's public API, or in an assembly the coverage doesn't count.
In Tassix

Cinemachine 2's axis: a value driven by an input axis's speed, wrapping or clamping.

Constructors 1

AxisState(float minValue, float maxValue, bool wrap, bool rangeLocked, float maxSpeed, float accelTime, float decelTime, string name, bool invert)

Fields 12

float Value
float m_AccelTime
float m_DecelTime
string m_InputAxisName
float m_InputAxisValue
bool m_InvertInput
float m_MaxSpeed
float m_MaxValue
float m_MinValue
Recentering m_Recentering
SpeedMode m_SpeedMode
bool m_Wrap

Properties 1

bool HasInputProvider { get; }

Methods 4

void Reset()
void SetInputAxisProvider(int axis, IInputAxisProvider? provider)
bool Update(float deltaTime)

Reads the input and moves the value; true when it changed.

void Validate()