From 65842f9d1685fff4a0b156bea44aaf2ed97ddeb3 Mon Sep 17 00:00:00 2001 From: NoixDeXydre Date: Thu, 9 Apr 2026 16:40:05 +0200 Subject: [PATCH 1/2] Fix Unity 6.5+ error --- .../Editor/Importers/TilesetAtlasImporter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SuperTiled2Unity/Packages/com.seanba.super-tiled2unity/Editor/Importers/TilesetAtlasImporter.cs b/SuperTiled2Unity/Packages/com.seanba.super-tiled2unity/Editor/Importers/TilesetAtlasImporter.cs index 0e97c35e..5c72803b 100644 --- a/SuperTiled2Unity/Packages/com.seanba.super-tiled2unity/Editor/Importers/TilesetAtlasImporter.cs +++ b/SuperTiled2Unity/Packages/com.seanba.super-tiled2unity/Editor/Importers/TilesetAtlasImporter.cs @@ -19,7 +19,7 @@ public class TilesetAtlasImporter : ScriptedImporter [MenuItem("Assets/Create/Super Tiled2Unity/Tileset Atlas")] private static void CreateMaterialFile() { - ProjectWindowUtil.CreateAssetWithContent("TTileAtlas_new.st2u_atlas", "# Uses Super Tiled2Unity scripted importer for placing tileset sprites in a sprite atlas"); + ProjectWindowUtil.CreateAssetWithTextContent("TTileAtlas_new.st2u_atlas", "# Uses Super Tiled2Unity scripted importer for placing tileset sprites in a sprite atlas"); } // Unity Sprite Atlas programming is tricky because of V1 and V2 and the feeling that neither is well supported by Unity APIs From 077edd0af206947310bc38f31e60152e053728dd Mon Sep 17 00:00:00 2001 From: NoixDeXydre Date: Thu, 30 Apr 2026 21:39:47 +0200 Subject: [PATCH 2/2] Re add compat with older versions of Unity --- .../Editor/Importers/TilesetAtlasImporter.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SuperTiled2Unity/Packages/com.seanba.super-tiled2unity/Editor/Importers/TilesetAtlasImporter.cs b/SuperTiled2Unity/Packages/com.seanba.super-tiled2unity/Editor/Importers/TilesetAtlasImporter.cs index 5c72803b..007a90a1 100644 --- a/SuperTiled2Unity/Packages/com.seanba.super-tiled2unity/Editor/Importers/TilesetAtlasImporter.cs +++ b/SuperTiled2Unity/Packages/com.seanba.super-tiled2unity/Editor/Importers/TilesetAtlasImporter.cs @@ -19,7 +19,11 @@ public class TilesetAtlasImporter : ScriptedImporter [MenuItem("Assets/Create/Super Tiled2Unity/Tileset Atlas")] private static void CreateMaterialFile() { +#if UNITY_6000_0_OR_NEWER ProjectWindowUtil.CreateAssetWithTextContent("TTileAtlas_new.st2u_atlas", "# Uses Super Tiled2Unity scripted importer for placing tileset sprites in a sprite atlas"); +#else + ProjectWindowUtil.CreateAssetWithContent("TTileAtlas_new.st2u_atlas", "# Uses Super Tiled2Unity scripted importer for placing tileset sprites in a sprite atlas"); +#endif } // Unity Sprite Atlas programming is tricky because of V1 and V2 and the feeling that neither is well supported by Unity APIs