From v0.4.X to v0.5.X

Overview

Version 0.5 updates the crate for Bevy v0.15. It notably takes advantage of the new required_component feature to simplify the crate API.

Also, this version provide some fixes related to user properties. If you are using them, you should reload your export file.

Bevy v0.15 update

Bevy official migration guide

Misc changes

TiledMapSettings update

map_initial_transform and map_initial_visibility have been removed from TiledMapSettings.

If you want to tweak your map positioning or visibility, you should instead directly insert corresponding Transform or Visibility components on the map entity.

Before:


#![allow(unused)]
fn main() {
    let map_handle: Handle<TiledMap> = asset_server.load("map.tmx");
    commands.spawn((
        TiledMapHandle(map_handle),
        TiledMapSettings {
            map_initial_transform: Transform::from_xyz(150., 100., 0.),
            map_initial_visibility: Visibility::Hidden,
            ..Default::default()
        },
    ));
}

After:


#![allow(unused)]
fn main() {
    let map_handle: Handle<TiledMap> = asset_server.load("map.tmx");
    commands.spawn((
        TiledMapHandle(map_handle),
        Transform::from_xyz(150., 100., 0.),
        Visibility::Hidden,
    ));
}