[LayaAir 2.0]Pool 使用 Laya.Prefab
public targetBox:Laya.Prefab;
let box: Laya.Sprite = Laya.Pool.getItemByCreateFun("ItemBox", this._control.targetBox.create, this._control.targetBox);
运行报错: Cannot read property 'create' of undefined
targetBox又在 control里面引用一个Prefab
let box: Laya.Sprite = Laya.Pool.getItemByCreateFun("ItemBox", this._control.targetBox.create, this._control.targetBox);
运行报错: Cannot read property 'create' of undefined
targetBox又在 control里面引用一个Prefab
没有找到相关结果
已邀请:
1 个回复
176*****376
赞同来自: