From 9ee59d0ba4afd5d316b6bfec7fba4cebed95f0f9 Mon Sep 17 00:00:00 2001 From: "Jordan \"Heroic\" Hunt" Date: Sun, 19 Oct 2025 09:21:04 -0500 Subject: [PATCH] Updated FromFile() to remove unused TextureRegion Removed redundant TextureRegion region because it's not used in the Method. --- .../13_working_with_tilemaps/snippets/tilemap.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/articles/tutorials/building_2d_games/13_working_with_tilemaps/snippets/tilemap.cs b/articles/tutorials/building_2d_games/13_working_with_tilemaps/snippets/tilemap.cs index 770c8be2..5c0e9ce0 100644 --- a/articles/tutorials/building_2d_games/13_working_with_tilemaps/snippets/tilemap.cs +++ b/articles/tutorials/building_2d_games/13_working_with_tilemaps/snippets/tilemap.cs @@ -230,9 +230,6 @@ public static Tilemap FromFile(ContentManager content, string filename) // Get the tileset index for this location int tilesetIndex = int.Parse(columns[column]); - // Get the texture region of that tile from the tileset - TextureRegion region = tileset.GetTile(tilesetIndex); - // Add that region to the tilemap at the row and column location tilemap.SetTile(column, row, tilesetIndex); }