Class: Loader

Loader

new Loader()

Members Show Inherited

Name Type Default Description
isLoader boolean true
className string Loader
preHandlerUrl function

url 预处理函数

Methods Show Inherited

staticLoader.addLoader(ext, LoaderClass)

给Loader类添加扩展Loader

Name Type Description
ext string

资源扩展,如gltf, png 等

LoaderClass any

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

staticLoader.getLoader(ext){any}

获取对应类型的 loader

Name Type Description
ext string
Returns:
Type Description
any loader

load(data){Promise.<any>}

load

Name Type Description
data Object | Array
Returns:
Type Description
Promise.<any>