Class CinemachineExternalCamera
This component will expose a non-cinemachine camera to the cinemachine system, allowing it to participate in blends. Just add it as a component alongside an existing Unity Camera component.
Inheritance
CinemachineExternalCamera
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
[RequireComponent(typeof(Camera))]
[DisallowMultipleComponent]
[AddComponentMenu("Cinemachine/Cinemachine External Camera")]
[ExecuteAlways]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.cinemachine@3.0/manual/CinemachineExternalCamera.html")]
public class CinemachineExternalCamera : CinemachineVirtualCameraBase, ICinemachineCamera
Fields
| Name | Description |
|---|---|
| BlendHint | Hint for transitioning to and from this virtual camera |
| LookAtTarget | The object that the camera is looking at. Setting this may improve the quality of the blends to and from this camera |
Properties
| Name | Description |
|---|---|
| Follow | This vcam defines no targets |
| LookAt | The object that the camera is looking at |
| State | Get the CameraState, as we are able to construct one from the Unity Camera |
Methods
| Name | Description |
|---|---|
| InternalUpdateCameraState(Vector3, float) | Internal use only. Do not call this method |