Accessors
Static basePath
- get basePath(): string
- set basePath(value: string): void
Returns string
Parameters
Returns void
Static loadingNum
Returns number
Methods
Static cacheRes
- cacheRes(url: string, data: unknown): void
Parameters
Returns void
Static clearRes
- clearRes(url: string): void
Parameters
Returns void
Static clearResByGroup
- clearResByGroup(group: string): void
Parameters
Returns void
Static create
- create(url: string, progress?: (value: number) => void, type?: string, constructParams?: null | any[], propertyParams?: unknown, priority?: number, cache?: boolean, loader?: LoaderManager): Promise<unknown>
Parameters
url: string
Optional progress: (value: number) => void
Optional type: string
Optional constructParams: null | any[]
Optional propertyParams: unknown
priority: number = 1
cache: boolean = true
loader: LoaderManager = Laya.loader
Returns Promise<unknown>
Static getRes
- getRes(url: string): unknown
Parameters
Returns unknown
Static load
- load(url: string | any[], progress?: (value: number) => void, type?: string, priority?: number, cache?: boolean, group?: string, loader?: LoaderManager): Promise<unknown>
Parameters
url: string | any[]
Optional progress: (value: number) => void
Optional type: string
priority: number = 1
cache: boolean = true
Optional group: string
loader: LoaderManager = Laya.loader
Returns Promise<unknown>
Static onLoadComplete
- onLoadComplete(callBack: () => void, once?: boolean): void
Parameters
callBack: () => void
once: boolean = true
Returns void
加载管理器