之前3.7反馈过,现在3.8问题依然存在
Creator 版本: 3.7.3 、 3.8.0
目标平台: all
重现方式:关闭 tiledMap 的 EnableCulling,然后动态设置tmxAsset.代码如下:
resources.load(“map”, TiledMapAsset, (err, tmxAsset: TiledMapAsset) => {
let tiledMap = this.node.getComponent(TiledMap)
//tiledMap.enableCulling = false
tiledMap.tmxAsset = tmxAsset
});
首个报错:
-
ErrorEvent {isTrusted: true, message: “Uncaught TypeError: Cannot read properties of null (reading ‘vb’)”, filename: ‘http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js’, lineno: 281795, colno: 23, …}
-
isTrusted: true
-
bubbles: false
-
cancelBubble: false
-
cancelable: true
-
colno: 23
-
composed: false
-
currentTarget: Window {window: Window, self: Window, document: document, name: ‘’, location: Location, …}
-
defaultPrevented: false
-
error: TypeError: Cannot read properties of null (reading ‘vb’) at packRenderData (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:281795:23) at traverseGrids (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:281985:5) at Object.updateRenderData (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:282193:17) at TiledLayer.updateRenderer (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:142397:29) at UIRendererManager.updateAllDirtyRenderers (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:142096:31) at Director.tick (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:16446:31) at Game._updateCallback (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:17543:22) at Pacer.updateCallback [as _callback] (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:96770:22) at Pacer._handleRAF (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:96742:23)
-
eventPhase: 0
-
filename: “http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js”
-
lineno: 281795
-
message: “Uncaught TypeError: Cannot read properties of null (reading ‘vb’)”
-
returnValue: true
-
srcElement: Window {window: Window, self: Window, document: document, name: ‘’, location: Location, …}
-
target: Window {window: Window, self: Window, document: document, name: ‘’, location: Location, …}
-
timeStamp: 19303.100000023842
-
type: “error”
-
[[Prototype]]: ErrorEvent
Uncaught TypeError: Cannot read properties of null (reading ‘vb’) simple.ts:319
at packRenderData (simple.ts:319:25)
at traverseGrids (simple.ts:535:5)
at Object.updateRenderData (simple.ts:138:17)
at TiledLayer.updateRenderer (ui-renderer.ts:402:29)
at UIRendererManager.updateAllDirtyRenderers (ui-renderer-manager.ts:71:31)
at Director.tick (director.ts:697:31)
at Game._updateCallback (game.ts:1027:22)
at Pacer.updateCallback [as _callback] (pacer-web.ts:93:22)
at Pacer._handleRAF (pacer-web.ts:119:22)
之前哪个版本是正常的:3.4.0
编辑器操作系统: macOS
重现概率:100%