Class CinemachineCameraEvents
This component will generate camera-specific activation and deactivation events. Add it to a Cinemachine Camera.
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[AddComponentMenu("Cinemachine/Helpers/Cinemachine Camera Events")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.cinemachine@3.1/manual/CinemachineCameraEvents.html")]
public class CinemachineCameraEvents : MonoBehaviour
Fields
BlendCreatedEvent
This event will fire whenever a blend is created that involves this camera.
The handler can modify any settings in the blend, except the cameras themselves.
Declaration
[Tooltip("This event will fire whenever a blend is created that involves this camera. The handler can modify any settings in the blend, except the cameras themselves.")]
public CinemachineCore.BlendEvent BlendCreatedEvent
Field Value
Type | Description |
---|---|
CinemachineCore.BlendEvent |
BlendFinishedEvent
This event will fire whenever a virtual camera finishes blending in.
It will not fire if the blend length is zero.
Declaration
[Tooltip("This event will fire whenever a virtual camera finishes blending in. It will not fire if the blend length is zero.")]
public CinemachineCore.CameraEvent BlendFinishedEvent
Field Value
Type | Description |
---|---|
CinemachineCore.CameraEvent |
CameraActivatedEvent
This is the object emitting the events.
If a blend is involved, it will be fired at the start of the blend.
Declaration
[Space]
[Tooltip("This event will fire whenever a virtual camera becomes active in the context of a mixer. If a blend is involved, then the event will fire on the first frame of the blend.")]
public CinemachineCore.CameraEvent CameraActivatedEvent
Field Value
Type | Description |
---|---|
CinemachineCore.CameraEvent |
CameraDeactivatedEvent
This event will fire whenever a virtual stops being live.
If a blend is involved, then the event will fire after the last frame of the blend.
Declaration
[Tooltip("This event will fire whenever a virtual stops being live. If a blend is involved, then the event will fire after the last frame of the blend.")]
public CinemachineCore.CameraEvent CameraDeactivatedEvent
Field Value
Type | Description |
---|---|
CinemachineCore.CameraEvent |
EventTarget
This is the object whose events are being monitored. If null and the current GameObject has a CinemachineVirtualCameraBase component, that component will be used.
Declaration
[Tooltip("This is the object whose events are being monitored. If null and the current GameObject has a CinemachineVirtualCameraBase component, that component will be used.")]
public CinemachineVirtualCameraBase EventTarget
Field Value
Type | Description |
---|---|
CinemachineVirtualCameraBase |