Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/loaders/LoadingManager.d.ts>LoadingManager#setURLModifier

A simple transformation of three.js for use within a Deno workflow
Go to Latest
method LoadingManager.prototype.setURLModifier
import { LoadingManager } from "https://deno.land/x/threejs_4_deno@v121/src/loaders/LoadingManager.d.ts";

If provided, the callback will be passed each resource URL before a request is sent. The callback may return the original URL, or a new URL to override loading behavior. This behavior can be used to load assets from .ZIP files, drag-and-drop APIs, and Data URIs.

Parameters

optional
callback: (url: string) => string

URL modifier callback. Called with url argument, and must return resolvedURL.