API

Interface ISceneLoaderPluginMetadata

Metadata for a SceneLoader plugin that must also be provided by a plugin factory

interface ISceneLoaderPluginMetadata {
    extensions: string | ISceneLoaderPluginExtensions;
    name: string;
    canDirectLoad?(data: string): boolean;
}

Hierarchy (View Summary)

Index
extensions: string | ISceneLoaderPluginExtensions

The file extensions supported by the plugin.

name: string

The friendly name of the plugin.

  • The callback that returns true if the data can be directly loaded.

    Parameters

    • data: string

      string containing the file data

    Returns boolean

    if the data can be loaded directly