cocos creator导入Tiledmap

  • Creator 版本: 3.6.0

  • 目标平台:场景编辑器

  • 重现方式:将Tiled 地图编辑器生成的地图拖到Assets中,再从Assets拖动到2d场景中

  • 首个报错:

[Scene] Failed to allocate chunk in StaticVBAccessor, the requested buffer might be too large: 360000 bytes

Error: [Scene] Failed to allocate chunk in StaticVBAccessor, the requested buffer might be too large: 360000 bytes

at error (D:\CocosDashboard\resources.editors\Creator\3.6.0\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:141593:12)

at errorID (D:\CocosDashboard\resources.editors\Creator\3.6.0\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:141793:5)

at StaticVBAccessor.allocateChunk (D:\CocosDashboard\resources.editors\Creator\3.6.0\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:81200:13)

at RenderData.resize (D:\CocosDashboard\resources.editors\Creator\3.6.0\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:79874:39)

at packRenderData (D:\CocosDashboard\resources.editors\Creator\3.6.0\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:188342:8)

at traverseGrids (D:\CocosDashboard\resources.editors\Creator\3.6.0\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:188533:5)

at Object.updateRenderData (D:\CocosDashboard\resources.editors\Creator\3.6.0\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:188768:17)

TypeError: Cannot read property ‘vb’ of null

at packRenderData (D:\CocosDashboard\resources.editors\Creator\3.6.0\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:188343:25)

at traverseGrids (D:\CocosDashboard\resources.editors\Creator\3.6.0\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:188533:5)

at Object.updateRenderData (D:\CocosDashboard\resources.editors\Creator\3.6.0\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:188768:17)

at TiledLayer.updateRenderer (D:\CocosDashboard\resources.editors\Creator\3.6.0\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:76390:29)

at UIRendererManager.updateAllDirtyRenderers (D:\CocosDashboard\resources.editors\Creator\3.6.0\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:76027:31)

at Director.tick (D:\CocosDashboard\resources.editors\Creator\3.6.0\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:10724:31)

at EngineManager.tickInEditMode (D:\CocosDashboard\resources.editors\Creator\3.6.0\resources\app.asar\builtin\scene\dist\script\3d\manager\engine\index.ccc:1:2974)

at EngineManager._tick (D:\CocosDashboard\resources.editors\Creator\3.6.0\resources\app.asar\builtin\scene\dist\script\3d\manager\engine\index.ccc:1:4039)

  • 之前哪个版本是正常的: 没
  • 编辑器操作系统: win11
  • 重现概率: 我的电脑100%

详细描述一下
我先用Tiled地图编辑器编辑个地图



然后拖入到2d工程里

将assets中的地图拖入场景中就会一直报错,且地图无法显示

请大神指教

scene.zip (27.3 KB)

感谢您的反馈信息
v3.6.0版本请手动修改engine/cocos/core/platform/macro.ts
BATCHER2D_MEM_INCREMENT: 144, -> 增大到需要的内存,单位为kb. 最大为2303
v3.6.1以上版本可直接通过编辑器修改项目->项目设置->宏配置->BATCHER2D_MEM_INCREMENT

你好我修改了下面这个文件
D:\CocosDashboard\resources.editors\Creator\3.6.0\resources\resources\3d\engine\cocos\core\platform\macro.ts


还是不行啊