Constructor
Variables
Methods
link(trackName:String, object:Dynamic, property:String):Int
Links an object's property to an animation track, thus causing it to animate.
Functions work aswell! In that case, the number of components of a vector will serve as arguments:
For example FlxSprite.setPosition() will recieve the Vector2 x and y.
The only exception to this is tracks of type Matrix3D, they will recieve the matrix object instead.
Note: For non-functions, make sure the property type and the track type are equal, else the link will not work.
Returns:
The index of the link in the track
unlink(trackName:String, object:Dynamic, property:String):Void
Removes an object's property from a linked animation track.
unlinkAllOf(object:Dynamic, ?property:String, ?trackName:String):Void
Removes all links of an object from the linker.
Parameters:
property | (Optional) A property name which will act as a filter, and will only remove links affecting that property. |
|---|---|
trackName | (Optional) If set, it will remove all links from that track only. |
linkSkin(skin:FoxSkinData):Void
Links all supported tracks to a FoxSkinData
Tracks with the name following the format boneName:property will be linked.
Supported properties are position, rotation and scale
linkObject(trackPrefix:String, object:FoxObject):Void
Links a FoxObject's transforms to this track data
findLink(trackName:String, object:Dynamic, property:String):Int
Searches for a link for a track and returns its index on the linker
updateLink(trackSrc:Map<String, FoxTrackData>):Void
Sends tracks value to the objects with linked properties
Parameters:
trackSrc | The tracks source |
|---|