ObjectLoader

@native @JSImport("three", "ObjectLoader") @JSType class ObjectLoader extends Loader
class Loader
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Constructors

def this(manager: UndefOr[LoadingManager])

Concrete methods

def load[ObjectType](url: String, onLoad: UndefOr[Function1[ObjectType, Unit]], onProgress: UndefOr[Function1[ProgressEvent, Unit]], onError: UndefOr[Function1[Error | ErrorEvent, Unit]]): Unit
def parse[T <: Object3D](json: Any, onLoad: UndefOr[Function1[Object3D, Unit]]): T
def parseAnimations(json: Any): Array[AnimationClip]
def parseAsync[T <: Object3D](json: Any): Promise[T]
def parseGeometries(json: Any): AnonObject10
def parseImages(json: Any, onLoad: Function0[Unit]): AnonObject11
def parseImagesAsync(json: Any): Promise[AnonObject11]
def parseMaterials(json: Any, textures: Array[Texture]): Array[Material]
def parseObject[T <: Object3D](data: Any, geometries: Array[Any], materials: Array[Material], animations: Array[AnimationClip]): T
def parseTextures(json: Any, images: Any): Array[Texture]

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def loadAsync(url: String, onProgress: UndefOr[Function1[ProgressEvent, Unit]]): Promise[Any]
Inherited from
Loader
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def setCrossOrigin(crossOrigin: String): ObjectLoader
Inherited from
Loader
def setPath(path: String): ObjectLoader
Inherited from
Loader
Inherited from
Loader
def setResourcePath(resourcePath: String): ObjectLoader
Inherited from
Loader
def setWithCredentials(value: Boolean): ObjectLoader
Inherited from
Loader
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Inherited fields

var crossOrigin: String
Inherited from
Loader
Inherited from
Loader
var path: String
Inherited from
Loader
Inherited from
Loader
var resourcePath: String
Inherited from
Loader
var withCredentials: Boolean
Inherited from
Loader