engine icon indicating copy to clipboard operation
engine copied to clipboard

refactor: export gltf parsers to the user to do some custom operations

Open zhuxudong opened this issue 2 years ago • 0 comments

const customParser =  new GLTFParser([
    CustomParser,
    ......
  ]);

 const customResource = new GLTFResource(engine);
 customResource.json = json;
 // customResource.arraybuffer = arraybuffer;

 customParser.parse(customResource).then((customResource)=>{
    console.log(customResource)
 })


zhuxudong avatar Sep 06 '22 14:09 zhuxudong