Package | laya.map |
Class | public class TileTexSet |
Inheritance | TileTexSet Object |
Property | Defined By | ||
---|---|---|---|
animationTotalTime : Number = 0 动画播放的总时间 | TileTexSet | ||
durationTimeArray : Array = null 当前动画每帧的时间间隔 | TileTexSet | ||
gid : int = -1 唯一标识 | TileTexSet | ||
isAnimation : Boolean = false true表示当前纹理,是一组动画,false表示当前只有一个纹理 | TileTexSet | ||
offX : int = 0 纹理显示时的坐标偏移X | TileTexSet | ||
offY : int = 0 纹理显示时的坐标偏移Y | TileTexSet | ||
texture : Texture 子纹理的引用 | TileTexSet | ||
textureArray : Array = null 当前要播放动画的纹理序列 | TileTexSet |
Method | Defined By | ||
---|---|---|---|
addAniSprite(aniName:String, sprite:TileAniSprite):void
加入一个动画显示对象到此动画中
| TileTexSet | ||
clearAll():void
清理
| TileTexSet | ||
removeAniSprite(_name:String):void
移除不需要更新的SPRITE
| TileTexSet | ||
showDebugInfo():String
显示当前动画的使用情况
| TileTexSet |
animationTotalTime | property |
public var animationTotalTime:Number = 0
动画播放的总时间
durationTimeArray | property |
public var durationTimeArray:Array = null
当前动画每帧的时间间隔
gid | property |
public var gid:int = -1
唯一标识
isAnimation | property |
public var isAnimation:Boolean = false
true表示当前纹理,是一组动画,false表示当前只有一个纹理
offX | property |
public var offX:int = 0
纹理显示时的坐标偏移X
offY | property |
public var offY:int = 0
纹理显示时的坐标偏移Y
texture | property |
public var texture:Texture
子纹理的引用
textureArray | property |
public var textureArray:Array = null
当前要播放动画的纹理序列
addAniSprite | () | method |
public function addAniSprite(aniName:String, sprite:TileAniSprite):void
加入一个动画显示对象到此动画中
Parameters
aniName:String — //显示对象的名字
| |
sprite:TileAniSprite — //显示对象
|
clearAll | () | method |
public function clearAll():void
清理
removeAniSprite | () | method |
public function removeAniSprite(_name:String):void
移除不需要更新的SPRITE
Parameters
_name:String |
showDebugInfo | () | method |
public function showDebugInfo():String
显示当前动画的使用情况
ReturnsString |