Class CinemachinePanTilt
This is a CinemachineComponent in the Aim section of the component pipeline. Its job is to aim the camera in response to the user's mouse or joystick input.
This component does not change the camera's position.
Inheritance
Inherited Members
Namespace: Unity.Cinemachine
Assembly: solution.dll
Syntax
[AddComponentMenu("Cinemachine/Procedural/Rotation Control/Cinemachine Pan Tilt")]
[DisallowMultipleComponent]
[CameraPipeline(CinemachineCore.Stage.Aim)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.cinemachine@3.0/manual/CinemachinePanTilt.html")]
public class CinemachinePanTilt : CinemachineComponentBase, IInputAxisOwner, IInputAxisResetSource, CinemachineFreeLookModifier.IModifierValueSource
Fields
Name | Description |
---|---|
PanAxis | Axis representing the current horizontal rotation. Value is in degrees and represents a rotation about the up vector |
ReferenceFrame | Defines the reference frame against which pan and tilt rotations are made. |
TiltAxis | Axis representing the current vertical rotation. Value is in degrees and represents a rotation about the right vector |
Properties
Name | Description |
---|---|
IsValid | True if component is enabled and has a LookAt defined |
Stage | Get the Cinemachine Pipeline stage that this component implements. Always returns the Aim stage |
Methods
Name | Description |
---|---|
ForceCameraPosition(Vector3, Quaternion) | Force the virtual camera to assume a given position and orientation. |
MutateCameraState(ref CameraState, float) | Applies the axis values and orients the camera accordingly |
OnTransitionFromCamera(ICinemachineCamera, Vector3, float) | Notification that this virtual camera is going live. Base class implementation does nothing. |
PrePipelineMutateCameraState(ref CameraState, float) | Does nothing |