[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)
QQ图片20190716115943.png
已邀请:

Aar0n

赞同来自:

addComponentInstance    搜自己项目, 哪块 写成这样子了

要回复问题请先

商务合作
商务合作