lovr.data.newModelData
EditLoads a 3D model from a file. The supported 3D file formats are OBJ and glTF.
modelData = lovr.data.newModelData(file)Arguments
| Name | Type | Description |
| file | string | Blob | A filename or Blob containing the model data to import. |
Returns
| Name | Type | Description |
| modelData | ModelData | The new ModelData. |