diff --git a/crates/bevy_sprite/src/texture_atlas.rs b/crates/bevy_sprite/src/texture_atlas.rs index ca8e38a0de..ae94e77b2b 100644 --- a/crates/bevy_sprite/src/texture_atlas.rs +++ b/crates/bevy_sprite/src/texture_atlas.rs @@ -68,7 +68,8 @@ impl TextureAtlas { } /// Generate a `TextureAtlas` by splitting a texture into a grid where each - /// `tile_size` by `tile_size` grid-cell is one of the textures in the atlas + /// `tile_size` by `tile_size` grid-cell is one of the textures in the + /// atlas. Resulting `TextureAtlas` is indexed left to right, top to bottom. pub fn from_grid( texture: Handle, tile_size: Vec2, @@ -81,7 +82,8 @@ impl TextureAtlas { /// Generate a `TextureAtlas` by splitting a texture into a grid where each /// `tile_size` by `tile_size` grid-cell is one of the textures in the /// atlas. Grid cells are separated by some `padding`, and the grid starts - /// at `offset` pixels from the top left corner. + /// at `offset` pixels from the top left corner. Resulting `TextureAtlas` is + /// indexed left to right, top to bottom. pub fn from_grid_with_padding( texture: Handle, tile_size: Vec2,