Class SingleMediaAssetTrack<TAsset, TMedia>
The base class for timeline tracks that use single media with an asset reference.
Inheritance
System.Object
FlaxEditor.GUI.Timeline.Track
SingleMediaTrack<TMedia>
SingleMediaAssetTrack<TAsset, TMedia>
Implements
System.IComparable
Namespace: FlaxEditor.GUI.Timeline.Tracks
Assembly: FlaxEngine.CSharp.dll
Syntax
public abstract class SingleMediaAssetTrack<TAsset, TMedia> : SingleMediaTrack<TMedia>, IComparable, IDrawable where TAsset : Asset where TMedia : Media, new()
Type Parameters
TAsset
The type of the asset. |
TMedia
The type of the media event. |
Constructors
SingleMediaAssetTrack(ref TrackCreateOptions)
Declaration
protected SingleMediaAssetTrack(ref TrackCreateOptions options)
Parameters
FlaxEditor.GUI.Timeline.TrackCreateOptions
options
|
Fields
_picker
The asset reference picker control.
Declaration
protected readonly AssetPicker _picker
Field Value
FlaxEditor.GUI.AssetPicker
|
AssetID
The asset id.
Declaration
public Guid AssetID
Field Value
System.Guid
|
Properties
Asset
Gets or sets the asset.
Declaration
public TAsset Asset { get; set; }
Property Value
TAsset
|
Methods
OnAssetChanged()
Called when selected asset gets changed.
Declaration
protected virtual void OnAssetChanged()
Extension Methods
See Also
FlaxEditor.GUI.Timeline.Track