API

Interface ISceneLoaderPluginFactory

Interface used by SceneLoader plugin factory

interface ISceneLoaderPluginFactory {
    extensions: string | ISceneLoaderPluginExtensions;
    name: string;
    canDirectLoad?(data: string): boolean;
    createPlugin(
        options: SceneLoaderPluginOptions,
    ):
        | ISceneLoaderPlugin
        | ISceneLoaderPluginAsync
        | Promise<ISceneLoaderPlugin | ISceneLoaderPluginAsync>;
}

Hierarchy (View Summary)

Index
extensions: string | ISceneLoaderPluginExtensions

The file extensions supported by the plugin.

name: string

The friendly name of the plugin.