[ view source ]
class TimelineTrack<K>
package ceramic
extends Entity
extended by TimelineBoolTrack, TimelineColorTrack, TimelineDegreesTrack, TimelineFloatArrayTrack, TimelineFloatTrack
Available on all targets
A track meant to be updated by a timeline. Base implementation doesn't do much by itself. Create subclasses to implement details
Constructor
Variables
size:Int = 0
Track size. Default 0
, meaning this track won't do anything.
By default, because autoFitSize
is true
, adding new keyframes to this
track will update size
accordingly so it may not be needed to update size
explicitly.
Setting size
to -1
means the track will never finish.
autoFitSize:Bool = true
If set to true
(default), adding keyframes to this track will update
its size accordingly to match last keyframe time.
locked:Bool = false
Whether this track is locked or not. A locked track doesn't get updated by the timeline it is attached to, if any.
Methods
finalseek(targetPosition:Float):Void
Seek the given position (in frames) in the track.
Will take care of clamping position
or looping it depending on size
and loop
properties.