Class CinemachineInputAxisController
This is a behaviour that is used to drive other behaviours that implement IInputAxisOwner, which it discovers dynamically. It is the bridge between the input system and Cinemachine cameras that require user input. Add it to a Cinemachine camera that needs it.
This implementation can read input from the Input package, or from the legacy input system, or both, depending on what is installed in the project.
Inheritance
CinemachineInputAxisController
Implements
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Cinemachine
Assembly: solution.dll
Syntax
[ExecuteAlways]
[AddComponentMenu("Cinemachine/Helpers/Cinemachine Input Axis Controller")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.cinemachine@3.0/manual/InputAxisController.html")]
public class CinemachineInputAxisController : InputAxisControllerBase<CinemachineInputAxisController.Reader>, IInputAxisController
Methods
Name | Description |
---|---|
InitializeControllerDefaultsForAxis(in AxisDescriptor, Controller) | Creates default controllers for an axis. Override this if the default axis controllers do not fit your axes. |