com.wallstop-studios.unity-helpers 2.0.0-rc76 → 2.0.0-rc76.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -415,16 +415,8 @@
|
|
|
415
415
|
|
|
416
416
|
private void CreateNewScriptableSpriteAtlas()
|
|
417
417
|
{
|
|
418
|
-
|
|
419
|
-
{
|
|
420
|
-
Directory.CreateDirectory(NewAtlasConfigDirectory);
|
|
421
|
-
AssetDatabase.Refresh();
|
|
422
|
-
}
|
|
423
|
-
|
|
418
|
+
DirectoryHelper.EnsureDirectoryExists(NewAtlasConfigDirectory);
|
|
424
419
|
ScriptableSpriteAtlas newAtlasConfig = CreateInstance<ScriptableSpriteAtlas>();
|
|
425
|
-
newAtlasConfig.outputSpriteAtlasDirectory = "Assets/GeneratedSpriteAtlases";
|
|
426
|
-
newAtlasConfig.outputSpriteAtlasName = "NewlyCreatedAtlas";
|
|
427
|
-
|
|
428
420
|
string path = AssetDatabase.GenerateUniqueAssetPath(
|
|
429
421
|
Path.Combine(NewAtlasConfigDirectory, "NewScriptableSpriteAtlas.asset")
|
|
430
422
|
);
|
package/package.json
CHANGED