-
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 extstring 资源扩展,如gltf, png 等
LoaderClassany 用于加载的类,需要继承BasicLoader
-
staticLoader.getLoader(ext){any}
-
获取对应类型的 loader
Name Type Description extstring Returns:
Type Description any loader -
load(data){Promise.<any>}
-
load
Name Type Description dataObject | Array Returns:
Type Description Promise.<any>