コード例 #1
0
        public override void FixAndReimport(SoAssetPostprocessor so)
        {
            var texturePostprocessorBase = so as SoTexturePostprocessorBase;

            SpriteAtlasAssetPostprocessor.SetPlatformSettings(GetSpriteAltas(), texturePostprocessorBase as SoSpriteAtlasPostprocessor);
            EditorUtility.SetDirty(GetSpriteAltas());
        }
コード例 #2
0
 private static void OnPostprocessWithExtension(string assetName)
 {
     if (assetName.EndsWith(".spriteatlas"))
     {
         SpriteAtlasAssetPostprocessor.OnPostprocessSpriteAtlas(assetName);
     }
 }
コード例 #3
0
        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'));
            }
        }