gameThirdScriptError Cannot read propety 'scene' of undefined怎么解决?

来源:5-12 2d画布绘制能力在threejs中的整合

慕运维3231767

2019-03-14

图片描述图片描述
在5-11中前面的三角形可以渲染出来,从2分钟以后-15分钟就出现’scene’ of undefined

写回答

2回答

卷大福

2022-04-29

scene.js 中对scene赋值少了'.instance', 更正如下:

initGameOverPage (callbacks) {

        this.gameOverPage = new GameOverPage(callbacks)

        this.gameOverPage.init({

            scene: this.gamePage.scene.instance

        })

    }


0
0

千迦

2019-03-14

代码逻辑有问题?没有对象未定义 代码截图发一下看看

0
7
千迦
回复
liaoxuehua
你的代码发一下看看
2019-04-18
共7条回复

three.js-打造微信小游戏跳一跳 快速掌握3D游戏开发

three.js+WebGL+微信小游戏API, 带你进入3D的游戏世界

793 学习 · 147 问题

查看课程