LoadingManager

THREE.LoadingManager
class LoadingManager(var onLoad: UndefOr[Function0[Unit]], var onProgress: UndefOr[Function3[String, Int, Int, Unit]], var onError: UndefOr[Function1[String, Unit]]) extends Object

Class for managing and tracking loaded and pending data.

Attributes

Graph
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def getItemLoadTime(url: String): Double

Get current load progress (0 to 100).

Get current load progress (0 to 100).

Attributes

Returns the number of items currently being loaded.

Returns the number of items currently being loaded.

Attributes

Returns the number of items already loaded.

Returns the number of items already loaded.

Attributes

def itemEnd(url: String): Unit

Check if item has completed loading.

Check if item has completed loading.

Attributes

def itemError(url: String): Unit

Mark an item as having failed to load.

Mark an item as having failed to load.

Attributes

def itemStart(url: String): Unit

Mark item as being currently loaded.

Mark item as being currently loaded.

Attributes

def resolveURL(url: String): String

Given a URL, returns the resolved URL (after any redirects).

Given a URL, returns the resolved URL (after any redirects).

Attributes

def setPath(path: String): this.type

Base path for all file loading.

Base path for all file loading.

Attributes

def setURLModifier(callback: Function1[String, String]): this.type

Set a custom resource URL modifier.

Set a custom resource URL modifier.

Attributes

Inherited methods

def hasOwnProperty(v: String): Boolean

Attributes

Inherited from:
Object
def isPrototypeOf(v: Object): Boolean

Attributes

Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean

Attributes

Inherited from:
Object
def toLocaleString(): String

Attributes

Inherited from:
Object
def valueOf(): Any

Attributes

Inherited from:
Object

Concrete fields

var onError: UndefOr[Function1[String, Unit]]
var onLoad: UndefOr[Function0[Unit]]
var onProgress: UndefOr[Function3[String, Int, Int, Unit]]
var onStart: Function3[String, Int, Int, Unit]