Where to look in the API, depending on what you want to do.
Everything listed here is in the prelude (use bevy_ecs_tiled::prelude::*;), unless a full path is given.
Module Content
assetTiled files loaded as Bevy assets: TiledMapAsset , TiledWorldAsset and Tiled IDs.
ecsEntities and components holding the Tiled data: the source of truth, which you can modify.
renderRendering derived from the ecs entities (render feature).
physicsPhysics colliders derived from the ecs entities (physics feature).
propertiesTiled custom properties.
debugDebug gizmos (debug feature).
I want to… Use
Load a map Add the TiledPlugin , spawn a TiledMap
Load a world Spawn a TiledWorld (world feature)
Only spawn the maps of a world around the camera TiledWorldStreaming
Find the spawned maps of a world TiledWorldMaps system parameter, TiledWorldReference on the map entity
Reload a map Insert RespawnTiledMap , or a new TiledMap
Place the map TilemapAnchor and Transform on the map entity
Change the Z offset between layers TiledMapLayerZOffset
React when a map, layer or object is spawned An observer on TiledEvent<MapCreated> (or LayerCreated, ObjectCreated, …)
Find the map of a layer, tile or object TiledMapReference , or TiledMapHelper
Iterate over the layers, tiles or objects of a map TiledMapLayers, TiledMapTiles, TiledMapObjects system parameters
Find the tile at a given position TiledTileLayerStorage on the layer entity
Know where a tile is displayed TiledMapHelper::tile_relative_position
Modify the map at runtime Spawn, modify or despawn TiledTile and TiledObject entities (see the guide )
Read raw Tiled data TiledMapAsset (map field, tileset(), tile(), layer(), object()) and the re-exported tiled crate
Read custom properties as they are in Tiled TiledProperties
Get custom properties as my own components The user_properties feature (see the guide )
Customize the tilemaps of a layer An observer on TiledEvent<TilemapCreated>, TiledTilemap
Add parallax to layers TiledParallaxCamera on the camera
Add physics colliders TiledPhysicsPlugin and TiledPhysicsSettings (see the guide )
Split tiles colliders into chunks TiledColliderChunkSize
React when colliders are created An observer on TiledEvent<ColliderCreated>
Use another physics engine TiledPhysicsBackend and physics::geometry::collider_shapes
Run my systems before or after bevy_ecs_tiled ones System sets
See what is going on TiledDebugPluginGroup (see the guide )