Extracts the glTF model at the give path, with the help of the cashed files Used for Model Target or Area Target extraction run-time
- Parameters
-
path | The path to the glTF model |
jsonString | Contents of the glTF file |
cachedFiles | Cached files of external dependencies to glTF |
customMaterial | A custom material to apply to the extracted model. If you want to use textures, the material must be based on Unity's "Standard" material |
extractTextures | Set this option to false if you do not intend to use the textures defined in the GLTF. They will never be extracted, potentially saving a large amount of memory |
- Returns
- The gameObject that is created from the glTF file