Class: Loader

Loader

new Loader()

Members Show Inherited

Name Type Default Description
isLoader boolean true
className string Loader

Methods Show Inherited

staticLoader.addLoader(ext, LoaderClass)

给Loader类添加扩展Loader

Name Type Description
ext string

资源扩展,如gltf, png 等

LoaderClass BasicLoader

用于加载的类,需要继承BasicLoader

load(data){Promise}

load

Name Type Description
data Object | Array
Returns:
Type Description
Promise