예제 #1
0
        public override void OnImportAsset(AssetImportContext ctx)
        {
            var asset = AssetDatabase.LoadAssetAtPath <UnityEngine.Object>(ctx.assetPath);

            if (asset == null)
            {
                // first time. set default setting
                m_reverseAxis = UniGLTFPreference.GltfIOAxis;
            }
            ScriptedImporterImpl.Import(this, ctx, m_reverseAxis);
        }
예제 #2
0
 public override void OnImportAsset(AssetImportContext ctx)
 {
     try
     {
         ScriptedImporterImpl.Import(this, ctx, m_reverseAxis);
     }
     catch (System.Exception ex)
     {
         Debug.LogError(ex);
     }
 }
예제 #3
0
 public override void OnImportAsset(AssetImportContext ctx)
 {
     ScriptedImporterImpl.Import(this, ctx, m_reverseAxis);
 }