Image的批处理渲染,如同Bitmap一样,无法递增点击事件 注意ImageBatchs在没有TouchImageBatchs容器的情况下,是属于点击无法透穿的。
@:value({ smoothing : false, pheight : -1, pwidth : -1 })new (batchSprites:Atlas, pwidth:Int = -1, pheight:Int = -1, smoothing:Bool = false)
使用精灵表进行批处理实现 @return
Parameters:
batchSprites
@:value(true)hitTestEnbled:Bool = true
点击触摸测试,默认为true,如果设置为false,则不再做触摸测试,并允许穿透。
addChild (display:Tile):Void
添加对象到最上层
null
display
addChildAt (display:Tile, index:Int):Void
addTile (tile:Tile):Tile
禁用该方法
tile
Returns:
Tile
addTileAt (tile:Tile, index:Int):Tile
getBSprite ():BSprite
获取渲染容器
BSprite