[unity] Added sprite slices button feedback.

This commit is contained in:
John 2016-09-11 22:24:03 +08:00 committed by GitHub
parent c1535080c8
commit 7b03506b24

View File

@ -140,6 +140,7 @@ namespace Spine.Unity.Editor {
t.spritesheet = sprites.ToArray();
EditorUtility.SetDirty(t);
AssetDatabase.ImportAsset(texturePath, ImportAssetOptions.ForceUpdate);
EditorGUIUtility.PingObject(texture);
Debug.Log(string.Format("Applied sprite slices to {2}. {0} added. {1} updated.", addedCount, updatedCount, texture.name));
}