Class CameraCutMedia
The timeline media that represents an camera cut media event.
Implements
Namespace: FlaxEditor.GUI.Timeline.Tracks
Assembly: FlaxEngine.CSharp.dll
Syntax
public class CameraCutMedia : Media, IComparable, IDrawable
Constructors
CameraCutMedia()
Methods
OnDestroy()
Method called when managed instance should be destroyed
Declaration
public override void OnDestroy()
Overrides
OnDurationFramesChanged()
Called when media duration in frames gets changed.
Declaration
protected override void OnDurationFramesChanged()
Overrides
OnSizeChanged()
Called when control size gets changed.
Declaration
protected override void OnSizeChanged()
Overrides
OnStartFrameChanged()
Called when media start frame gets changed.
Declaration
protected override void OnStartFrameChanged()
Overrides
OnThumbnailRenderingBegin(SceneRenderTask, GPUContext, ref CameraCutThumbnailRenderer.Request)
Called when thumbnail rendering begins.
Declaration
public void OnThumbnailRenderingBegin(SceneRenderTask task, GPUContext context, ref CameraCutThumbnailRenderer.Request req)
Parameters
SceneRenderTask
task
The scene rendering task to customize. |
GPUContext
context
The GPU rendering context. |
FlaxEditor.GUI.Timeline.Tracks.CameraCutThumbnailRenderer.Request
req
The request data. |
OnThumbnailRenderingEnd(SceneRenderTask, GPUContext, ref CameraCutThumbnailRenderer.Request, ref SpriteHandle)
Called when thumbnail rendering ends. The task output buffer contains ready frame.
Declaration
public void OnThumbnailRenderingEnd(SceneRenderTask task, GPUContext context, ref CameraCutThumbnailRenderer.Request req, ref SpriteHandle sprite)
Parameters
SceneRenderTask
task
The scene rendering task to customize. |
GPUContext
context
The GPU rendering context. |
FlaxEditor.GUI.Timeline.Tracks.CameraCutThumbnailRenderer.Request
req
The request data. |
SpriteHandle
sprite
The thumbnail sprite. |
OnTimelineChanged(Track)
Called when parent track gets changed.
Declaration
public override void OnTimelineChanged(Track track)
Parameters
FlaxEditor.GUI.Timeline.Track
track
The track. |
Overrides
OnTimelineContextMenu(ContextMenu, Single, Control)
Called when showing timeline context menu to the user. Can be used to add custom buttons.
Declaration
public override void OnTimelineContextMenu(ContextMenu menu, float time, Control controlUnderMouse)
Parameters
FlaxEditor.GUI.ContextMenu.ContextMenu
menu
The menu. |
System.Single
time
The time (in seconds) at which context menu is shown (user clicked on a timeline). |
Control
controlUnderMouse
The found control under the mouse cursor. |
Overrides
UpdateThumbnails(Int32[])
Updates the thumbnails.
Declaration
public void UpdateThumbnails(int[] indices = null)
Parameters
System.Int32[]
indices
The icon indices to update (null if update all of them). |