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
Inherited Members
Namespace: Cinemachine
Syntax
[DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
[RequireComponent(typeof(Camera))]
[DisallowMultipleComponent]
[AddComponentMenu("Cinemachine/CinemachineExternalCamera")]
[ExecuteAlways]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.cinemachine@2.8/manual/CinemachineExternalCamera.html")]
public class CinemachineExternalCamera : CinemachineVirtualCameraBase, ICinemachineCamera, ISerializationCallbackReceiver
Fields
m_BlendHint
Hint for blending positions to and from this virtual camera
Declaration
[Tooltip("Hint for blending positions to and from this virtual camera")]
[FormerlySerializedAs("m_PositionBlending")]
public CinemachineVirtualCameraBase.BlendHint m_BlendHint
Field Value
Type | Description |
---|---|
CinemachineVirtualCameraBase.BlendHint |
m_LookAt
The object that the camera is looking at.
Declaration
[Tooltip("The object that the camera is looking at. Setting this will improve the quality of the blends to and from this camera")]
public Transform m_LookAt
Field Value
Type | Description |
---|---|
Transform |
Properties
Follow
This vcam defines no targets
Declaration
public override Transform Follow { get; set; }
Property Value
Type | Description |
---|---|
Transform |
Overrides
LookAt
The object that the camera is looking at
Declaration
public override Transform LookAt { get; set; }
Property Value
Type | Description |
---|---|
Transform |
Overrides
State
Get the CameraState, as we are able to construct one from the Unity Camera
Declaration
public override CameraState State { get; }
Property Value
Type | Description |
---|---|
CameraState |
Overrides
Methods
InternalUpdateCameraState(Vector3, Single)
Internal use only. Do not call this method
Declaration
public override void InternalUpdateCameraState(Vector3 worldUp, float deltaTime)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | worldUp | Effective world up |
Single | deltaTime | Effective deltaTime |