Class CinemachineBrainEvents
This component will generate CinemachineBrain-specific events.
Inheritance
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[AddComponentMenu("Cinemachine/Helpers/Cinemachine Brain Events")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.cinemachine@3.1/manual/CinemachineBrainEvents.html")]
public class CinemachineBrainEvents : CinemachineMixerEventsBase
Fields
Brain
This is the CinemachineBrain emitting the events. If null and the current GameObject has a CinemachineBrain component, that component will be used.
Declaration
[Tooltip("This is the CinemachineBrain emitting the events. If null and the current GameObject has a CinemachineBrain component, that component will be used.")]
public CinemachineBrain Brain
Field Value
Type | Description |
---|---|
Cinemachine |
BrainUpdatedEvent
This event will fire after the brain updates its Camera. This evenet will only fire if this component is attached to a CinemachineBrain.
Declaration
[Tooltip("This event will fire after the brain updates its Camera.")]
public CinemachineCore.BrainEvent BrainUpdatedEvent
Field Value
Type | Description |
---|---|
Cinemachine |
Methods
GetMixer()
Get the object being monitored. This is the object that will generate the events.
Declaration
protected override ICinemachineMixer GetMixer()
Returns
Type | Description |
---|---|
ICinemachine |
The ICinemachineMixer object that is the origin of the events. |