Class CinemachineMixerEventsBase
This is a base class for components that will generate mixer-specific events.
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
public abstract class CinemachineMixerEventsBase : MonoBehaviour
Fields
BlendCreatedEvent
This event will fire whenever a blend is created in the root frame of this Brain.
The handler can modify any settings in the blend, except the cameras themselves.
Note: timeline tracks will not generate these events.
Declaration
[Tooltip("This event will fire whenever a blend is created in the root frame of this Brain. The handler can modify any settings in the blend, except the cameras themselves. Note: timeline tracks will not generate these events.")]
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 event will fire whenever a virtual camera goes live.
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 goes live. 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 |
CameraCutEvent
This event is fired when there is a camera cut. A camera cut is a camera activation with a zero-length blend.
Declaration
[Tooltip("This event is fired when there is a camera cut. A camera cut is a camera activation with a zero-length blend.")]
public CinemachineCore.CameraEvent CameraCutEvent
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 |
Methods
GetMixer()
Get the object being monitored. This is the object that will generate the events.
Declaration
protected abstract ICinemachineMixer GetMixer()
Returns
Type | Description |
---|---|
ICinemachineMixer | The ICinemachineMixer object that is the origin of the events. |
InstallHandlers(ICinemachineMixer)
Install the event handlers. Call this from OnEnable().
Declaration
protected void InstallHandlers(ICinemachineMixer mixer)
Parameters
Type | Name | Description |
---|---|---|
ICinemachineMixer | mixer | The mixer object to monitor. |
UninstallHandlers()
Uninstall the event handlers. Call the from OnDisable().
Declaration
protected void UninstallHandlers()