[unity] Fixed texture preset not being applied when more atlas pages are added later. Fixed atlas page count not being updated immediately after change. Closes #2266.

This commit is contained in:
Harald Csaszar 2023-03-13 16:24:56 +01:00
parent 7c76c5803c
commit f09f5b73a0

View File

@ -634,6 +634,7 @@ namespace Spine.Unity.Editor {
atlasAsset.atlasFile = atlasText;
List<string> pageFiles = new List<string>();
atlasAsset.Clear(); // force reload
Atlas atlas = atlasAsset.GetAtlas(onlyMetaData: true);
if (atlas != null) {
foreach (AtlasPage page in atlas.Pages)