engine icon indicating copy to clipboard operation
engine copied to clipboard

Add Loader for GlTF SubAsset

Open gz65555 opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. I have a material only need a texture of glTF asset, but I don't want to parse all the glTF Asset.

Describe the solution you'd like Use q as query param. If the param is textures[0] which to get glTFResource.textures[0].

engine.resourceManager.load('.glTF?q=textures[0]');
engine.resourceManager.load('.glTF?q=materials[0]');
engine.resourceManager.load('.glTF?q=animations[0]');
engine.resourceManager.load('.glTF?q=meshes[0][0]');

Additional context Support the project of Digital technology. @jeasonstudio

gz65555 avatar Sep 22 '22 09:09 gz65555