Class MemberTrack
The timeline track for animating object member (managed object).
Inheritance
Namespace: FlaxEditor.GUI.Timeline.Tracks
Assembly: FlaxEngine.CSharp.dll
Syntax
public abstract class MemberTrack : ConductorTrack, IComparable, IDrawable, IKeyframesEditorContext
Constructors
MemberTrack(ref TrackCreateOptions, Boolean, Boolean, Boolean)
Initializes a new instance of the MemberTrack class.
Declaration
protected MemberTrack(ref TrackCreateOptions options, bool useNavigationButtons = true, bool useValuePreview = true, bool useProxyKeyframes = false)
Parameters
|
FlaxEditor.GUI.Timeline.TrackCreateOptions
options
The track initial options. |
|
System.Boolean
useNavigationButtons
True if show keyframe navigation buttons, otherwise false. |
|
System.Boolean
useValuePreview
True if show current value preview, otherwise false. |
|
System.Boolean
useProxyKeyframes
True if show sub-tracks keyframes as a proxy on this track, otherwise false. |
Fields
_addKey
_leftKey
_previewValue
_rightKey
MemberTypeName
The member typename (fullname including namespace but not assembly).
Declaration
public string MemberTypeName
Field Value
|
System.String
|
ValueSize
The member value data size (in bytes).
Declaration
public int ValueSize
Field Value
|
System.Int32
|
Properties
CanCopyPaste
Declaration
public override bool CanCopyPaste { get; }
Property Value
|
System.Boolean
|
Overrides
CanDrag
Declaration
public override bool CanDrag { get; }
Property Value
|
System.Boolean
|
Overrides
CanRename
Declaration
public override bool CanRename { get; }
Property Value
|
System.Boolean
|
Overrides
Member
Gets or sets the object member. Performs the value validation on set.
Declaration
public MemberInfo Member { get; set; }
Property Value
|
System.Reflection.MemberInfo
|
MemberName
Gets or sets the object member name (just a member name). Does not validate the value on set.
Declaration
public string MemberName { get; set; }
Property Value
|
System.String
|
MemberTypes
Gets the allowed member types for this track type.
Declaration
protected virtual MemberTypes MemberTypes { get; }
Property Value
|
System.Reflection.MemberTypes
|
Methods
Evaluate(Single)
Evaluates the member value at the specified time.
Declaration
public virtual object Evaluate(float time)
Parameters
|
System.Single
time
The time to evaluate the member at. |
Returns
|
System.Object
The member value at provided time. |
GetMember(Type, String)
Gets the member from the given type.
Declaration
protected MemberInfo GetMember(Type type, string name)
Parameters
|
System.Type
type
The declaring type. |
|
System.String
name
The member name. |
Returns
|
System.Reflection.MemberInfo
The member or null if not found. |
GetValueDataSize(Type)
Gets the size of the value data type.
Declaration
protected virtual int GetValueDataSize(Type type)
Parameters
|
System.Type
type
The type. |
Returns
|
System.Int32
The value data size (in bytes). |
GetValueText(Object)
Gets the value text for UI.
Declaration
protected string GetValueText(object value)
Parameters
|
System.Object
value
The value. |
Returns
|
System.String
The text. |
OnDestroy()
OnDuplicated(Track)
Declaration
public override void OnDuplicated(Track clone)
Parameters
|
FlaxEditor.GUI.Timeline.Track
clone
|
Overrides
OnMemberChanged(MemberInfo, Type)
Called when member gets changed.
Declaration
protected virtual void OnMemberChanged(MemberInfo value, Type type)
Parameters
|
System.Reflection.MemberInfo
value
The member value assigned. |
|
System.Type
type
The member type assigned. |
OnTimelineChanged(Timeline)
Declaration
public override void OnTimelineChanged(Timeline timeline)
Parameters
|
FlaxEditor.GUI.Timeline.Timeline
timeline
|
Overrides
PerformLayoutBeforeChildren()
Perform layout for that container control before performing it for child controls.
Declaration
protected override void PerformLayoutBeforeChildren()
Overrides
TryGetValue(out Object)
Tries the get current value from the assigned object property.
Declaration
protected virtual bool TryGetValue(out object value)
Parameters
|
System.Object
value
The result value. Valid only if methods returns true. |
Returns
|
System.Boolean
True if got value, otherwise false. |
Update(Single)
Perform control update and all its children
Declaration
public override void Update(float deltaTime)
Parameters
|
System.Single
deltaTime
Delta time in seconds |