Class ActorTrack
The timeline track for animating Actor objects.
Inheritance
System.Object
    
    
    FlaxEditor.GUI.Timeline.Track
    
    
    ActorTrack
      
    Namespace: FlaxEditor.GUI.Timeline.Tracks
Assembly: FlaxEngine.CSharp.dll
Syntax
public class ActorTrack : ObjectTrack, IComparable, IDrawable, IKeyframesEditorContext, IObjectTrack
  Constructors
ActorTrack(ref TrackCreateOptions, Boolean)
Initializes a new instance of the ActorTrack class.
Declaration
public ActorTrack(ref TrackCreateOptions options, bool useProxyKeyframes = true)
  Parameters
| 
        FlaxEditor.GUI.Timeline.TrackCreateOptions
        options
         The track initial options.  | 
    
| 
        System.Boolean
        useProxyKeyframes
         True if show sub-tracks keyframes as a proxy on this track, otherwise false.  | 
    
Fields
_selectActor
ActorID
The object ID.
Declaration
public Guid ActorID
  Field Value
| 
        System.Guid
         
  | 
    
Properties
Actor
Gets the object instance (it might be missing).
Declaration
public Actor Actor { get; set; }
  Property Value
| 
        Actor
         
  | 
    
Object
Gets the object instance (may be null if reference is invalid or data is missing).
Declaration
public override object Object { get; }
  Property Value
| 
        System.Object
         
  | 
    
Overrides
Methods
AddScriptTrack(Script)
Adds the script track to this actor track.
Declaration
public void AddScriptTrack(Script script)
  Parameters
| 
        Script
        script
         The script object.  | 
    
GetArchetype()
Gets the archetype.
Declaration
public static TrackArchetype GetArchetype()
  Returns
| 
        FlaxEditor.GUI.Timeline.TrackArchetype
         The archetype.  | 
    
IsActorValid(Actor)
Determines whether actor is valid for this track.
Declaration
protected virtual bool IsActorValid(Actor actor)
  Parameters
| 
        Actor
        actor
         The actor.  | 
    
Returns
| 
        System.Boolean
         True if it's valid, otherwise false.  | 
    
OnActorChanged()
Called when actor gets changed.
Declaration
protected virtual void OnActorChanged()
  OnContextMenu(ContextMenu)
Declaration
protected override void OnContextMenu(ContextMenu menu)
  Parameters
| 
        FlaxEditor.GUI.ContextMenu.ContextMenu
        menu
         
  | 
    
Overrides
FlaxEditor.GUI.Timeline.Track.OnContextMenu(FlaxEditor.GUI.ContextMenu.ContextMenu)
  
  
  
  
  
  OnDestroy()
OnShowAddContextMenu(ContextMenu)
Called when showing the context menu for add button (for sub-tracks adding).
Declaration
protected override void OnShowAddContextMenu(ContextMenu menu)
  Parameters
| 
        FlaxEditor.GUI.ContextMenu.ContextMenu
        menu
         The menu.  |