[LayaAir 2.0]prefab添加runtime脚本 comp._addComponentInstance is not a function
laya.core.js:11586 Uncaught TypeError: comp._addComponentInstance is not a function
at Function.SceneUtils.createComp (laya.core.js:11586)
at Function.SceneUtils.createByData (laya.core.js:11507)
at Prefab.__proto.create (laya.core.js:19301)
at Function.Pool.getItemByCreateFun (laya.core.js:5825)
at GameControl.createBox (GameControl.js:54)
at GameControl.onUpdate (GameControl.js:39)
at TimerHandler.__proto.run (laya.core.js:7533)
at Timer.__proto._update (laya.core.js:7271)
at Stage.__proto._updateTimers (laya.core.js:31106)
at Stage.__proto.render (laya.core.js:31071)
at Function.SceneUtils.createComp (laya.core.js:11586)
at Function.SceneUtils.createByData (laya.core.js:11507)
at Prefab.__proto.create (laya.core.js:19301)
at Function.Pool.getItemByCreateFun (laya.core.js:5825)
at GameControl.createBox (GameControl.js:54)
at GameControl.onUpdate (GameControl.js:39)
at TimerHandler.__proto.run (laya.core.js:7533)
at Timer.__proto._update (laya.core.js:7271)
at Stage.__proto._updateTimers (laya.core.js:31106)
at Stage.__proto.render (laya.core.js:31071)
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Aar0n
赞同来自: