Ejemplo n.º 1
0
 public VRMImporterContext(GltfParser parser, UniGLTF.LoadTextureAsyncFunc asyncTextureLoader = null) : base(parser, asyncTextureLoader)
 {
     // parse VRM part
     if (glTF_VRM_extensions.TryDeserilize(GLTF.extensions, out glTF_VRM_extensions vrm))
     {
         VRM = vrm;
         // override material importer
         MaterialFactory.CreateMaterialAsync = new VRMMaterialImporter(VRM.materialProperties).CreateMaterialAsync;
     }
     else
     {
         throw new KeyNotFoundException("not vrm0");
     }
 }
Ejemplo n.º 2
0
 public VRMImporterContext(GltfParser parser,
                           UniGLTF.LoadTextureAsyncFunc asyncTextureLoader = null,
                           IEnumerable <(string, UnityEngine.Object)> externalObjectMap = null) : base(parser, asyncTextureLoader, externalObjectMap)