diff --git a/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkTilesetImporter.cs b/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkTilesetImporter.cs index 42b454cf..4e9df726 100644 --- a/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkTilesetImporter.cs +++ b/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkTilesetImporter.cs @@ -228,6 +228,7 @@ private LDtkArtifactAssetsTileset MakeAndCacheArtifacts(TextureGenerationOutput { LDtkProfiler.BeginSample("AddTile"); Sprite spr = output.sprites[i]; + spr.hideFlags = HideFlags.HideInHierarchy; ImportContext.AddObjectToAsset(spr.name, spr); LDtkProfiler.EndSample(); @@ -250,7 +251,7 @@ private LDtkArtifactAssetsTileset MakeAndCacheArtifacts(TextureGenerationOutput newTilesetTile._sprite = spr; newTilesetTile._type = GetColliderTypeForSprite(spr); newTilesetTile._tileId = i; - newTilesetTile.hideFlags = HideFlags.None; + newTilesetTile.hideFlags = HideFlags.HideInHierarchy; if (customData.TryGetValue(i, out string cd)) { newTilesetTile._customData = cd;