Exemplo n.º 1
0
        public override void FixAndReimport(SoAssetPostprocessor so)
        {
            var modelPostprocessor = so as SoModelPostprocessor;

            ModelAssetPostprocessor.SetSettings(GetAssetImporter <ModelImporter>(), modelPostprocessor);
            EditorUtility.SetDirty(GetAssetImporter <ModelImporter>());
        }
Exemplo n.º 2
0
 private void OnPostprocessModel(GameObject g)
 {
     if (IsNewCreateFile(assetImporter.assetPath))
     {
         var importer = assetImporter as ModelImporter;
         ModelAssetPostprocessor.OnPostprocessModel(importer);
     }
 }
Exemplo n.º 3
0
        public override void VerifyAssetState(SoAssetPostprocessor so)
        {
            WarnLogic.SetValue(false);

            var    modelPostprocessor = so as SoModelPostprocessor;
            string message;

            if (!ModelAssetPostprocessor.CompareSettings(GetAssetImporter <ModelImporter>(), modelPostprocessor, out message))
            {
                WarnLogic.SetValue(true);
                WarnLogic.SetMessage(message.TrimStart('\n'));
            }
        }