public override void FixAndReimport(SoAssetPostprocessor so) { var texturePostprocessorBase = so as SoTexturePostprocessorBase; SpriteAtlasAssetPostprocessor.SetPlatformSettings(GetSpriteAltas(), texturePostprocessorBase as SoSpriteAtlasPostprocessor); EditorUtility.SetDirty(GetSpriteAltas()); }
private static void OnPostprocessWithExtension(string assetName) { if (assetName.EndsWith(".spriteatlas")) { SpriteAtlasAssetPostprocessor.OnPostprocessSpriteAtlas(assetName); } }
public override void VerifyAssetState(SoAssetPostprocessor so) { WarnLogic.SetValue(false); var texturePostprocessorBase = so as SoSpriteAtlasPostprocessor; string message; if (!SpriteAtlasAssetPostprocessor.CompareSettings(GetSpriteAltas(), texturePostprocessorBase, out message)) { WarnLogic.SetValue(true); WarnLogic.SetMessage(message.TrimStart('\n')); } }