A utility class that creates Unity meshes from glTF. Used with ModelTarget and AreaTarget datasets.
More...
|
void | Clear () |
| Clears the allocated native memory.
|
|
GameObject | ExtractModel (string path, Material customMaterial, bool ignoreMaterials=false) |
| Extracts the glTF model at the given path, with the help of the cached files Used for Model Target or Area Target extraction run-time.
|
|
GameObject | ExtractModel (string path, Material[] customMaterials, bool ignoreMaterials=false) |
| 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.
|
|
A utility class that creates Unity meshes from glTF. Used with ModelTarget and AreaTarget datasets.
◆ Clear()
Clears the allocated native memory.
◆ ExtractModel() [1/2]
GameObject ExtractModel |
( |
string | path, |
|
|
Material | customMaterial, |
|
|
bool | ignoreMaterials = false ) |
|
inline |
Extracts the glTF model at the given path, with the help of the cached files Used for Model Target or Area Target extraction run-time.
- Parameters
-
path | The path to the glTF model |
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 |
ignoreMaterials | If the parser should ignore the materials specified in the glTF file |
- Returns
- The gameObject that is created from the glTF file
◆ ExtractModel() [2/2]
GameObject ExtractModel |
( |
string | path, |
|
|
Material[] | customMaterials, |
|
|
bool | ignoreMaterials = false ) |
|
inline |
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 |
customMaterials | The custom materials to apply to the extracted model. If you want to use textures, the materials must be based on Unity's "Standard" material |
ignoreMaterials | If the parser should ignore the materials specified in the glTF file |
- Returns
- The gameObject that is created from the glTF file