Skip to content

TilemapLayer Class

Definition

Namespace: Brine2D.Tilemap

C#
public class TilemapLayer

Inheritance System.Object → TilemapLayer

Properties
HasCollision When true, solid tiles on this layer contribute collision rects. Both this and IsSolid must be set for a rect to be generated.
ParallaxX Parallax scroll factor on X. 1.0 scrolls with the camera, 0.0 is screen-fixed. Maps to Tiled's parallaxx.
ParallaxY Parallax scroll factor on Y. 1.0 scrolls with the camera, 0.0 is screen-fixed. Maps to Tiled's parallaxy.
Properties Custom properties from Tiled. Does not include collision/hascollision, which is reflected in HasCollision.
TintColor Tint multiplied with each tile during rendering. Defaults to White \(no tint\). Alpha is pre-multiplied with Brine2D.Tilemap.TilemapLayer.Opacity.