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

x/remapper/src/deps.ts>three.LoadingManager#setURLModifier

A framework for Beat Saber map scripting.
Go to Latest
method three.LoadingManager.prototype.setURLModifier
Re-export
import { three } from "https://deno.land/x/remapper@2.1.0/src/deps.ts";
const { LoadingManager } = three;

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.