Class CinemachineOrbitController
Class CinemachineOrbitController.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Global Namespace
Syntax
[RequireComponent(typeof(CinemachineVirtualCamera))]
public class CinemachineOrbitController : MonoBehaviour
Properties
cameraDistance
Gets or sets the camera distance.
Declaration
public float cameraDistance { get; set; }
Property Value
Type | Description |
---|---|
Single | The camera distance. |
cinemachineVirtualCamera
Gets or sets the cinemachine virtual camera.
Declaration
public CinemachineVirtualCamera cinemachineVirtualCamera { get; set; }
Property Value
Type | Description |
---|---|
Cinemachine.CinemachineVirtualCamera | The cinemachine virtual camera. |
RotationX
Gets or sets the rotation x.
Declaration
public float RotationX { get; set; }
Property Value
Type | Description |
---|---|
Single | The rotation x. |
RotationY
Gets or sets the rotation y.
Declaration
public float RotationY { get; set; }
Property Value
Type | Description |
---|---|
Single | The rotation y. |
zoomRange
Gets or sets the zoom range.
Declaration
public Vector2 zoomRange { get; set; }
Property Value
Type | Description |
---|---|
Vector2 | The zoom range. |
Methods
GetAxisCustom(String)
Gets the axis custom.
Declaration
public float GetAxisCustom(string axisName)
Parameters
Type | Name | Description |
---|---|---|
String | axisName | Name of the axis. |
Returns
Type | Description |
---|---|
Single | System.Single. |