Package | laya.ani |
Class | public class AnimationTemplet |
Inheritance | AnimationTemplet laya.resource.Resource |
Subclasses | Templet |
AnimationTemplet
类用于动画模板资源。
Property | Defined By | ||
---|---|---|---|
interpolation : Array [static] | AnimationTemplet |
Method | Defined By | ||
---|---|---|---|
AnimationTemplet | |||
getAniDuration(aniIndex:int):int | AnimationTemplet | ||
getAnimation(aniIndex:int):* | AnimationTemplet | ||
getAnimationCount():int | AnimationTemplet | ||
getAnimationDataWithCache(key:*, cacheDatas:*, aniIndex:int, frameIndex:int):Float32Array | AnimationTemplet | ||
getNodeCount(aniIndex:int):int | AnimationTemplet | ||
getNodeIndexWithName(aniIndex:int, name:String):int | AnimationTemplet | ||
getNodes(aniIndex:int):* | AnimationTemplet | ||
getNodesCurrentFrameIndex(aniIndex:int, playCurTime:Number):Uint32Array | AnimationTemplet | ||
getOriginalData(aniIndex:int, originalData:Float32Array, nodesFrameIndices:Array, frameIndex:int, playCurTime:Number):void | AnimationTemplet | ||
getOriginalDataUnfixedRate(aniIndex:int, originalData:Float32Array, playCurTime:Number):void | AnimationTemplet | ||
getPublicExtData():ArrayBuffer | AnimationTemplet | ||
getTotalkeyframesLength(aniIndex:int):int | AnimationTemplet | ||
load(url:String):AnimationTemplet [static]
加载动画模板。
| AnimationTemplet | ||
onAsynLoaded(url:String, data:*, params:Array):void [override]
private
| AnimationTemplet | ||
setAnimationDataWithCache(key:*, cacheDatas:Array, aniIndex:int, frameIndex:Number, data:*):void | AnimationTemplet |
Method | Defined By | ||
---|---|---|---|
detoryResource():void [override]
销毁资源,override it,同时修改memorySize属性。 | AnimationTemplet |
interpolation | property |
public static var interpolation:Array
AnimationTemplet | () | Constructor |
public function AnimationTemplet()
detoryResource | () | method |
override protected function detoryResource():void
销毁资源,override it,同时修改memorySize属性。
getAniDuration | () | method |
public function getAniDuration(aniIndex:int):int
Parameters
aniIndex:int |
int |
getAnimation | () | method |
public function getAnimation(aniIndex:int):*
Parameters
aniIndex:int |
* |
getAnimationCount | () | method |
public function getAnimationCount():int
Returnsint |
getAnimationDataWithCache | () | method |
public function getAnimationDataWithCache(key:*, cacheDatas:*, aniIndex:int, frameIndex:int):Float32Array
Parameters
key:* | |
cacheDatas:* | |
aniIndex:int | |
frameIndex:int |
Float32Array |
getNodeCount | () | method |
public function getNodeCount(aniIndex:int):int
Parameters
aniIndex:int |
int |
getNodeIndexWithName | () | method |
public function getNodeIndexWithName(aniIndex:int, name:String):int
Parameters
aniIndex:int | |
name:String |
int |
getNodes | () | method |
public function getNodes(aniIndex:int):*
Parameters
aniIndex:int |
* |
getNodesCurrentFrameIndex | () | method |
public function getNodesCurrentFrameIndex(aniIndex:int, playCurTime:Number):Uint32Array
Parameters
aniIndex:int | |
playCurTime:Number |
Uint32Array |
getOriginalData | () | method |
public function getOriginalData(aniIndex:int, originalData:Float32Array, nodesFrameIndices:Array, frameIndex:int, playCurTime:Number):void
Parameters
aniIndex:int | |
originalData:Float32Array | |
nodesFrameIndices:Array | |
frameIndex:int | |
playCurTime:Number |
getOriginalDataUnfixedRate | () | method |
public function getOriginalDataUnfixedRate(aniIndex:int, originalData:Float32Array, playCurTime:Number):void
Parameters
aniIndex:int | |
originalData:Float32Array | |
playCurTime:Number |
getPublicExtData | () | method |
public function getPublicExtData():ArrayBuffer
ReturnsArrayBuffer |
getTotalkeyframesLength | () | method |
public function getTotalkeyframesLength(aniIndex:int):int
Parameters
aniIndex:int |
int |
load | () | method |
public static function load(url:String):AnimationTemplet
加载动画模板。
Parameters
url:String — 动画模板地址。
|
AnimationTemplet |
onAsynLoaded | () | method |
override public function onAsynLoaded(url:String, data:*, params:Array):void
private
Parameters
url:String | |
data:* | |
params:Array |
setAnimationDataWithCache | () | method |
public function setAnimationDataWithCache(key:*, cacheDatas:Array, aniIndex:int, frameIndex:Number, data:*):void
Parameters
key:* | |
cacheDatas:Array | |
aniIndex:int | |
frameIndex:Number | |
data:* |