Project1

标题: cannot read property 'setEnabled' of null [打印本页]

作者: Moshu_desu    时间: 2018-2-10 21:37
标题: cannot read property 'setEnabled' of null
如题
测试时出现cannot read property 'setEnabled' of null
请问原因是什么?
作者: 雪在燃    时间: 2018-2-10 22:11
应该是某个脚本出现了问题,具体的需要看脚本

作者: Moshu_desu    时间: 2018-2-10 22:44
本帖最后由 Moshu_desu 于 2018-2-10 22:45 编辑
雪在燃 发表于 2018-2-10 22:11
应该是某个脚本出现了问题,具体的需要看脚本


刚刚发现了是
[原创发布] 【插件】地图显示变量(https://rpg.blue/forum.php?mod=viewthread&tid=390233&highlight=%E5%9C%B0%E5%9B%BE%E6%98%BE%E7%A4%BA%E5%8F%98%E9%87%8F)
的问题
里头的ShowVariable hide 1会造成游戏测试时出现 cannot read property 'setEnabled' of null
谢谢回复

但我还是不知道解决方法...
作者: 雪在燃    时间: 2018-2-11 09:53
Moshu_desu 发表于 2018-2-10 22:44
刚刚发现了是
[原创发布] 【插件】地图显示变量(https://rpg.blue/forum.php?mod=viewthread&tid=390233& ...

推测是因为没有事先初始化
也就是插件命令initialize
作者: Moshu_desu    时间: 2018-3-3 20:22
雪在燃 发表于 2018-2-11 09:53
推测是因为没有事先初始化
也就是插件命令initialize

谢谢回复!
目前基本上是知道原因了!




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1