• Load a 3D model file from a URL (glTF, glb, FBX, OBJ, or any format with a registered loader).

    Parameters

    • url: string

      URL to the model file.

    • Optionaloptions: {
          context?: Context;
          onprogress?: (evt: ProgressEvent) => void;
          path?: string;
          seed?: number;
      }

      Optional loading configuration.

      • Optionalcontext?: Context

        The Needle Engine context to load into. Defaults to Context.Current.

      • Optionalonprogress?: (evt: ProgressEvent) => void

        Callback invoked with download progress events.

      • Optionalpath?: string
      • Optionalseed?: number

        Seed for generating unique component IDs.

    Returns Promise<undefined | Model>

    A promise that resolves to the loaded Model (GLTF | FBX | OBJ | CustomModel), or undefined if loading fails.