报错 Sampler binding 'cc_spriteTexture' at set 2 binding 11 index 0 is not bounded

  • Creator 版本:3.7.1

  • 目标平台: 手机App内嵌Webview、H5移动端、

  • 重现方式:无法确定

  • 首个报错: 2023-03-10 16:04:33 [Preview] Sampler binding ‘cc_spriteTexture’ at set 2 binding 11 index 0 is not bounded

Error: [Preview] Sampler binding ‘cc_spriteTexture’ at set 2 binding 11 index 0 is not bounded

at error (/Applications/CocosCreator/Creator/3.6.3/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:129838:12)

at WebGL2CmdFuncBindStates (/Applications/CocosCreator/Creator/3.6.3/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:245025:13)

at WebGL2PrimaryCommandBuffer.bindStates (/Applications/CocosCreator/Creator/3.6.3/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:247533:11)

at WebGL2PrimaryCommandBuffer.draw (/Applications/CocosCreator/Creator/3.6.3/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:247420:20)

at Proxy.newFunc (/Applications/CocosCreator/Creator/3.6.3/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:120796:37)

at UIPhase.render (/Applications/CocosCreator/Creator/3.6.3/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:151767:23)

at ForwardStage.render (/Applications/CocosCreator/Creator/3.6.3/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:270555:25)
最早出现在编辑动画时,重启编辑器恢复正常,再次编辑时又出现,目前动画已经全部删除依然出现报错,已无法确定出现的准确原因.

  • 之前哪个版本是正常的: 首次开发就使用的3.7.1
  • 手机型号:和手机无关
  • 手机浏览器:
  • 编辑器操作系统: mac
  • 重现概率:

自顶,实在是找不到解决办法了

我刚解决这个问题,把你自己定义的effect里面的layout(set = 2, binding = 12) 11改成12

4赞