mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-06-07 18:52:23 +08:00
ResLoader.get方法兼容cc.3.8.3
This commit is contained in:
@@ -254,7 +254,7 @@ oops.res.loadDir("game", onProgressCallback, onCompleteCallback);
|
||||
* @param type 资源类型
|
||||
* @param bundleName 远程资源包名
|
||||
*/
|
||||
get<T extends Asset>(path: string, type?: __private._types_globals__Constructor<T> | null, bundleName?: string): T | null {
|
||||
get<T extends Asset>(path: string, type?: __private.__types_globals__Constructor<T> | null, bundleName?: string): T | null {
|
||||
if (bundleName == null) bundleName = this.defaultBundleName;
|
||||
|
||||
var bundle: AssetManager.Bundle = assetManager.getBundle(bundleName)!;
|
||||
|
||||
Reference in New Issue
Block a user