Small World Engine API Reference - v0.76.20
    Preparing search index...

    Class GltfLoader

    Loader for glTF 2.0 assets (.gltf and .glb).

    Hierarchy (View Summary)

    Index
    basePath: string = ""

    The base path for resource URLs.

    • Dispatches an event.

      Parameters

      • type: string

        The event type.

      • eventData: Record<string, unknown> = {}

        Optional data associated with the event.

      Returns void

    • Derives the folder path (everything up to and including the last /) from a URL, so sibling resources (materials, textures, buffers) can be resolved relative to it.

      Parameters

      • url: string

        The URL to derive the folder path from.

      Returns string

      The folder path, including a trailing slash.