Class CinemachineShotClipEditor
Inherited Members
Namespace: Global Namespace
Assembly: com.unity.cinemachine.editor.dll
Syntax
[CustomTimelineEditor(typeof(CinemachineShot))]
public class CinemachineShotClipEditor : ClipEditor
Fields
TimelineGlobalToLocalTime
Declaration
public static CinemachineShotClipEditor.TimelineGlobalToLocalTimeDelegate TimelineGlobalToLocalTime
Field Value
Type | Description |
---|---|
Cinemachine |
Methods
DrawBackground(TimelineClip, ClipBackgroundRegion)
Override this method to draw a background for a clip .
Declaration
public override void DrawBackground(TimelineClip clip, ClipBackgroundRegion region)
Parameters
Type | Name | Description |
---|---|---|
Timeline |
clip | The clip being drawn. |
Clip |
region | The on-screen area where the clip is drawn. |
Overrides
GetClipOptions(TimelineClip)
Implement this method to override the default options for drawing a clip.
Declaration
public override ClipDrawOptions GetClipOptions(TimelineClip clip)
Parameters
Type | Name | Description |
---|---|---|
Timeline |
clip | The clip being drawn. |
Returns
Type | Description |
---|---|
Clip |
The options for drawing a clip. |
Overrides
OnClipChanged(TimelineClip)
Called when a clip is changed by the Editor.
Declaration
public override void OnClipChanged(TimelineClip clip)
Parameters
Type | Name | Description |
---|---|---|
Timeline |
clip | The clip that changed. |
Overrides
OnCreate(TimelineClip, TrackAsset, TimelineClip)
Called when a clip is created.
Declaration
public override void OnCreate(TimelineClip clip, TrackAsset track, TimelineClip clonedFrom)
Parameters
Type | Name | Description |
---|---|---|
Timeline |
clip | The newly created clip. |
Track |
track | The track that the clip is assigned to. |
Timeline |
clonedFrom | The source that the clip was copied from. This can be set to null if the clip is not a copy. |
Overrides
Remarks
The callback occurs before the clip is assigned to the track.