@ives_xxz/framework 2.3.13 → 2.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/manager/FWAssetManager.ts +1 -1
- package/manager/FWResManager.ts +2 -1
- package/package.json +1 -1
- package/types/FW.d.ts +1 -0
package/manager/FWResManager.ts
CHANGED
|
@@ -97,12 +97,13 @@ export class FWResManager extends FWManager implements FW.ResManager {
|
|
|
97
97
|
ext?: string;
|
|
98
98
|
enableCache?: boolean;
|
|
99
99
|
maxRetryCount?: number;
|
|
100
|
+
texture?: boolean;
|
|
100
101
|
cb?: (asset: T) => void;
|
|
101
102
|
},
|
|
102
103
|
): Promise<T> {
|
|
103
104
|
try {
|
|
104
105
|
const asset = await this.assetMgr.loadRemote(url, options);
|
|
105
|
-
if (options?.
|
|
106
|
+
if (!options?.texture) {
|
|
106
107
|
return asset as T;
|
|
107
108
|
} else {
|
|
108
109
|
if (asset instanceof cc.Texture2D) {
|
package/package.json
CHANGED