@cc-component/cc-core 1.5.6 → 1.5.7
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.
|
@@ -92,6 +92,7 @@ export class EffectSingleCase {
|
|
|
92
92
|
|
|
93
93
|
for (let i = 0; i < count; i++) {
|
|
94
94
|
let node = instantiate(App.GetAsset(params.bundle, params.path))//ViewUtil.createPrefabNode(path, bundleName);
|
|
95
|
+
node.asset_path = App.res.getAssetKey(params.path, params.bundle)
|
|
95
96
|
np.put(node);
|
|
96
97
|
}
|
|
97
98
|
resolve();
|
|
@@ -268,7 +269,8 @@ export class EffectSingleCase {
|
|
|
268
269
|
|
|
269
270
|
/**获取节点 */
|
|
270
271
|
getNode(params: IPoolParams): Node {
|
|
271
|
-
|
|
272
|
+
const name = params.path.split(':').pop();
|
|
273
|
+
var np = this.effects.get(name);
|
|
272
274
|
const node = np?.get() ?? null
|
|
273
275
|
this.updateNode(node, params)
|
|
274
276
|
return node
|
|
@@ -95,7 +95,7 @@ export class App {
|
|
|
95
95
|
self._res = ResourceManager.instance;
|
|
96
96
|
|
|
97
97
|
if (EDITOR) { return }//编辑器环境,不执行下面逻辑
|
|
98
|
-
Logger.setLevel(ELoggerLevel.Error);
|
|
98
|
+
//Logger.setLevel(ELoggerLevel.Error);
|
|
99
99
|
await self._gui.loadConfig(param);
|
|
100
100
|
const config: EnvironmentConfig = self._gui.current_config;
|
|
101
101
|
// 免网络
|