[ view source ]
class TilemapLayerData
package ceramic
extends Model › Entity
Available with tilemap plugin
Events
explicitDepthChange(current:Null<Float>, previous:Null<Float>):Void
Event when explicitDepth field changes.
extraBlendingChange(current:Blending, previous:Blending):Void
Event when extraBlending field changes.
tilesChange(current:ReadOnlyArray<TilemapTile>, previous:ReadOnlyArray<TilemapTile>):Void
Event when tiles field changes.
tilesAlphaChange(current:ReadOnlyArray<Float>, previous:ReadOnlyArray<Float>):Void
Event when tilesAlpha field changes.
computedTilesChange(current:ReadOnlyArray<TilemapTile>, previous:ReadOnlyArray<TilemapTile>):Void
Event when computedTiles field changes.
computedTilesAlphaChange(current:ReadOnlyArray<Float>, previous:ReadOnlyArray<Float>):Void
Event when computedTilesAlpha field changes.
shouldRenderTilesChange(current:Bool, previous:Bool):Void
Event when shouldRenderTiles field changes.
Constructor
Variables
explicitDepth:Null<Float> = null
Explicit depth, or null of that should be computed by Tilemap
instead
computedTiles:ReadOnlyArray<TilemapTile> = null
Computed tiles, after applying auto-tiling (if any).
Will be null
if no auto-tiling is used.
computedTilesAlpha:ReadOnlyArray<Float> = null
Per-computed tile alpha, or null if there is no custom alpha per computed tile
read onlyhasTiles:Bool
Is true
if this layer has tiles. Some layers don't have tile and
don't need to be rendered with tilemap layer quads, but are still
available as containers to add custom objects (like LDtk entities).
Returns:
Bool
shouldRenderTiles:Bool = true
Is true
(default) if this layer should have its tiles rendered (if any).