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 0e97c35..007a90a 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