ResLoader.get方法兼容cc.3.8.3

This commit is contained in:
donggang
2024-05-16 17:28:02 +08:00
parent 318a004987
commit 75055b7484

View File

@@ -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)!;