Interface ImportMeshOptions
interface ImportMeshOptions {
meshNames?: string | readonly string[] | null;
name?: string;
onProgress?: (event: ISceneLoaderProgressEvent) => void;
pluginExtension?: string;
pluginOptions?: {
[key: string]:
| { enabled?: boolean; [key: string]: unknown }
| undefined;
};
rootUrl?: string;
}
meshNames?: string | readonly string[] | null;
name?: string;
onProgress?: (event: ISceneLoaderProgressEvent) => void;
pluginExtension?: string;
pluginOptions?: {
[key: string]:
| { enabled?: boolean; [key: string]: unknown }
| undefined;
};
rootUrl?: string;
}
Hierarchy
- ISceneLoaderOptions
- ImportMeshOptions
Properties
Optionalmesh Names
meshNames?: string | readonly string[] | null
An array of mesh names, a single mesh name, or empty string for all meshes that filter what meshes are imported
Optionalname
name?: string
Defines the filename, if the data is binary
Optionalon Progress
A callback with a progress event for each file being loaded
Optionalplugin Extension
pluginExtension?: string
The extension used to determine the plugin
Optionalplugin Options
pluginOptions?: {
[key: string]: { enabled?: boolean; [key: string]: unknown } | undefined;
}
[key: string]: { enabled?: boolean; [key: string]: unknown } | undefined;
}
Defines options for the registered plugins
Optionalroot Url
rootUrl?: string
A string that defines the root url for the scene and resources or the concatenation of rootURL and filename (e.g. http://example.com/test.glb)
Defines options for ImportMeshAsync.