Search Results for

    Show / Hide Table of Contents

    Class ObjectTrack

    The timeline track for animating managed objects.

    Inheritance
    System.Object
    Control
    ContainerControl
    FlaxEditor.GUI.Timeline.Track
    ConductorTrack
    ObjectTrack
    ActorTrack
    ScriptTrack
    Implements
    System.IComparable
    IDrawable
    IKeyframesEditorContext
    Inherited Members
    ConductorTrack.Proxy
    ConductorTrack.OnVisibleChanged()
    ConductorTrack.OnExpandedChanged()
    ConductorTrack.OnTimelineChanged(Timeline)
    ConductorTrack.OnTimelineZoomChanged()
    ConductorTrack.OnTimelineArrange()
    ConductorTrack.OnTimelineFpsChanged(Single, Single)
    ConductorTrack.OnKeyframesDeselect(IKeyframesEditor)
    ConductorTrack.OnKeyframesSelection(IKeyframesEditor, ContainerControl, Rectangle)
    ConductorTrack.OnKeyframesSelectionCount()
    ConductorTrack.OnKeyframesDelete(IKeyframesEditor)
    ConductorTrack.OnKeyframesMove(IKeyframesEditor, ContainerControl, Float2, Boolean, Boolean)
    ConductorTrack.OnKeyframesCopy(IKeyframesEditor, Nullable<Single>, StringBuilder)
    ConductorTrack.OnKeyframesPaste(IKeyframesEditor, Nullable<Single>, String[], Int32)
    ConductorTrack.OnKeyframesGet(Action<String, Single, Object>)
    ConductorTrack.OnKeyframesSet(List<KeyValuePair<Single, Object>>)
    ContainerControl._children
    ContainerControl._containsFocus
    ContainerControl._isLayoutLocked
    ContainerControl.LockChildrenRecursive()
    ContainerControl.UnlockChildrenRecursive()
    ContainerControl.RemoveChildren()
    ContainerControl.DisposeChildren()
    ContainerControl.AddChild<T>()
    ContainerControl.AddChild<T>(T)
    ContainerControl.RemoveChild(Control)
    ContainerControl.GetChild(Int32)
    ContainerControl.GetChild<T>()
    ContainerControl.GetChildIndex(Control)
    ContainerControl.GetChildIndexAt(Float2)
    ContainerControl.GetChildAt(Float2)
    ContainerControl.GetChildAt(Float2, Func<Control, Boolean>)
    ContainerControl.GetChildAtRecursive(Float2)
    ContainerControl.GetClientArea()
    ContainerControl.SortChildren()
    ContainerControl.SortChildrenRecursive()
    ContainerControl.OnChildResized(Control)
    ContainerControl.OnChildrenChanged()
    ContainerControl.GetDesireClientArea(Rectangle)
    ContainerControl.IntersectsChildContent(Control, Float2, Float2)
    ContainerControl.OnNavigate(NavDirection, Float2, Control, List<Control>)
    ContainerControl.CanNavigateChild(Control)
    ContainerControl.NavigationWrap(NavDirection, Float2, List<Control>, Float2)
    ContainerControl.UpdateContainsFocus()
    ContainerControl.UpdateChildrenBounds()
    ContainerControl.PerformLayoutBeforeChildren()
    ContainerControl.PerformLayoutAfterChildren()
    ContainerControl.ClearState()
    ContainerControl.Draw()
    ContainerControl.DrawSelf()
    ContainerControl.DrawChildren()
    ContainerControl.ContainsPoint(Float2, Boolean)
    ContainerControl.PerformLayout(Boolean)
    ContainerControl.RayCast(Float2, Control)
    ContainerControl.OnMouseEnter(Float2)
    ContainerControl.OnMouseMove(Float2)
    ContainerControl.OnMouseLeave()
    ContainerControl.OnMouseWheel(Float2, Single)
    ContainerControl.OnMouseDown(Float2, MouseButton)
    ContainerControl.OnMouseUp(Float2, MouseButton)
    ContainerControl.OnMouseDoubleClick(Float2, MouseButton)
    ContainerControl.IsTouchPointerOver(Int32)
    ContainerControl.OnTouchEnter(Float2, Int32)
    ContainerControl.OnTouchDown(Float2, Int32)
    ContainerControl.OnTouchMove(Float2, Int32)
    ContainerControl.OnTouchUp(Float2, Int32)
    ContainerControl.OnTouchLeave(Int32)
    ContainerControl.OnCharInput(Char)
    ContainerControl.OnKeyDown(KeyboardKeys)
    ContainerControl.OnKeyUp(KeyboardKeys)
    ContainerControl.OnDragEnter(Float2, DragData)
    ContainerControl.OnDragMove(Float2, DragData)
    ContainerControl.OnDragLeave()
    ContainerControl.OnDragDrop(Float2, DragData)
    ContainerControl.OnSizeChanged()
    ContainerControl.Children
    ContainerControl.ChildrenCount
    ContainerControl.HasChildren
    ContainerControl.ContainsFocus
    ContainerControl.ClipChildren
    ContainerControl.CullChildren
    ContainerControl.IsTouchOver
    Control.Resize(Float2)
    Control.UpdateBounds()
    Control.UpdateTransform()
    Control.SetAnchorPreset(AnchorPresets, Boolean, Boolean)
    Control.Dispose()
    Control.Focus()
    Control.Defocus()
    Control.OnGotFocus()
    Control.OnLostFocus()
    Control.OnStartContainsFocus()
    Control.OnEndContainsFocus()
    Control.Focus(Control)
    Control.StartMouseCapture(Boolean)
    Control.EndMouseCapture()
    Control.OnEndMouseCapture()
    Control.GetNavTarget(NavDirection)
    Control.GetNavOrigin(NavDirection)
    Control.NavigationFocus()
    Control.OnSubmit()
    Control.OnTouchLeave()
    Control.DoDragDrop(DragData)
    Control.LinkTooltip(String, Tooltip)
    Control.UnlinkTooltip()
    Control.OnShowTooltip(String, Float2, Rectangle)
    Control.OnTooltipShown(Tooltip)
    Control.OnTestTooltipOverControl(Float2)
    Control.IntersectsContent(Float2, Float2)
    Control.PointToParent(ContainerControl, Float2)
    Control.PointToParent(Float2)
    Control.PointToParent(Float2)
    Control.PointFromParent(Float2)
    Control.PointFromParent(Float2)
    Control.PointFromParent(ContainerControl, Float2)
    Control.PointToWindow(Float2)
    Control.PointFromWindow(Float2)
    Control.PointToScreen(Float2)
    Control.PointFromScreen(Float2)
    Control.OnLocationChanged()
    Control.SetScaleInternal(Float2)
    Control.SetPivotInternal(Float2)
    Control.SetShearInternal(Float2)
    Control.SetRotationInternal(Single)
    Control.OnParentChangedInternal()
    Control.AddUpdateCallbacks(RootControl)
    Control.RemoveUpdateCallbacks(RootControl)
    Control.SetUpdate(Control.UpdateDelegate, Control.UpdateDelegate)
    Control.OnParentResized()
    Control.CompareTo(Object)
    Control.Compare(Control)
    Control.Top
    Control.Bottom
    Control.Left
    Control.Right
    Control.UpperLeft
    Control.UpperRight
    Control.BottomRight
    Control.BottomLeft
    Control.Scale
    Control.Pivot
    Control.Shear
    Control.Rotation
    Control.HasParent
    Control.BackgroundColor
    Control.BackgroundBrush
    Control.Enabled
    Control.EnabledInHierarchy
    Control.Visible
    Control.VisibleInHierarchy
    Control.IsDisposing
    Control.Root
    Control.RootWindow
    Control.DpiScale
    Control.ScreenPos
    Control.AutoFocus
    Control.IsFocused
    Control.IsNavFocused
    Control.IsMouseOver
    Control.IsDragOver
    Control.Tooltip
    Control.ShowTooltip
    Control.EditorBounds
    Control.LocationChanged
    Control.SizeChanged
    Control.ParentChanged
    Control.VisibleChanged
    Namespace: FlaxEditor.GUI.Timeline.Tracks
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    public abstract class ObjectTrack : ConductorTrack, IComparable, IDrawable, IKeyframesEditorContext, IObjectTrack

    Constructors

    ObjectTrack(ref TrackCreateOptions, Boolean)

    Initializes a new instance of the ObjectTrack class.

    Declaration
    protected ObjectTrack(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

    _addButton

    The add button.

    Declaration
    protected Button _addButton
    Field Value
    Button

    BasicTypesTrackArchetypes

    Maps the type to the default track archetype for it.

    Declaration
    protected static readonly Dictionary<Type, TrackArchetype> BasicTypesTrackArchetypes
    Field Value
    System.Collections.Generic.Dictionary<System.Type, FlaxEditor.GUI.Timeline.TrackArchetype>

    Properties

    Object

    Gets the object instance (may be null if reference is invalid or data is missing).

    Declaration
    public abstract object Object { get; }
    Property Value
    System.Object

    Methods

    AddEvents(Track, ContextMenu, Type, Func<MemberInfo, Boolean>)

    Adds the object events track options to menu.

    Declaration
    public static int AddEvents(Track parentTrack, ContextMenu menu, Type type, Func<MemberInfo, bool> memberCheck = null)
    Parameters
    FlaxEditor.GUI.Timeline.Track parentTrack

    The parent track.

    FlaxEditor.GUI.ContextMenu.ContextMenu menu

    The menu.

    System.Type type

    The object type.

    System.Func<System.Reflection.MemberInfo, System.Boolean> memberCheck

    The custom callback that can reject the members that should not be animated. Returns true if member is valid. Can be null to skip this feature.

    Returns
    System.Int32

    The added options count.

    AddProperties(Track, ContextMenu, Type, Func<MemberInfo, Boolean>)

    Adds the object properties animation track options to menu.

    Declaration
    public static int AddProperties(Track parentTrack, ContextMenu menu, Type type, Func<MemberInfo, bool> memberCheck = null)
    Parameters
    FlaxEditor.GUI.Timeline.Track parentTrack

    The parent track.

    FlaxEditor.GUI.ContextMenu.ContextMenu menu

    The menu.

    System.Type type

    The object type.

    System.Func<System.Reflection.MemberInfo, System.Boolean> memberCheck

    The custom callback that can reject the members that should not be animated. Returns true if member is valid. Can be null to skip this feature.

    Returns
    System.Int32

    The added options count.

    AddPropertyTrack(MemberInfo)

    Adds the property or field track to this object track.

    Declaration
    public MemberTrack AddPropertyTrack(MemberInfo m)
    Parameters
    System.Reflection.MemberInfo m

    The member (property or a field).

    Returns
    MemberTrack

    The created track or null if failed.

    OnAddMemberTrack(ContextMenuButton)

    Called on context menu button click to add new object property animation track. Button should have FlaxEditor.GUI.Timeline.Tracks.ObjectTrack.AddMemberTag value assigned to the FlaxEngine.GUI.Control.Tag field.

    Declaration
    public static void OnAddMemberTrack(ContextMenuButton button)
    Parameters
    FlaxEditor.GUI.ContextMenu.ContextMenuButton button

    The button (with FlaxEditor.GUI.Timeline.Tracks.ObjectTrack.AddMemberTag value assigned to the FlaxEngine.GUI.Control.Tag field.).

    OnDestroy()

    Declaration
    public override void OnDestroy()
    Overrides
    ConductorTrack.OnDestroy()

    OnObjectExistenceChanged(Object)

    Called when object existence gets changed (eg. object found after being not found).

    Declaration
    protected virtual void OnObjectExistenceChanged(object obj)
    Parameters
    System.Object obj

    The object.

    OnShowAddContextMenu(ContextMenu)

    Called when showing the context menu for add button (for sub-tracks adding).

    Declaration
    protected virtual void OnShowAddContextMenu(ContextMenu menu)
    Parameters
    FlaxEditor.GUI.ContextMenu.ContextMenu menu

    The menu.

    Update(Single)

    Perform control update and all its children

    Declaration
    public override void Update(float deltaTime)
    Parameters
    System.Single deltaTime

    Delta time in seconds

    Overrides
    ContainerControl.Update(Single)

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)

    See Also

    FlaxEditor.GUI.Timeline.Track
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat