大约有 9 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0023 秒)
调用 Laya.Pool.getItemByCreateFun 时报错 调用 Laya.Pool.getItemByCreateFun 时报错 附件 : --> 2019-03-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 建议参照2d新建示...
来源: Laya_社区 发布时间: 20190303
调用 Laya.Pool.getItemByCreateFun 报错 /** @prop {name:rolePrefabs, tips:"英雄角色", type:Vector, xCount:1, sType:Prefab}*/ public rolePrefabs: Laya.Prefab[]; //TODO 报错 let role2 = Laya.Pool.getItemByCreateFun("role", this.rolePrefabs[0].create, this.rolePrefabs[0]); 附件 : --> BugRea...
来源: Laya_社区 发布时间: 20190304
...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 2019-08-26 添加评论 免费...
来源: Laya_社区 发布时间: 20190826
...坛中也查找了一些做法 1. let box: Laya.Sprite = Laya.Pool.getItemByCreateFun("dropBox", this.dropBox.create, this.dropBox); 这个会在create的时候报错 2. prefab:Prefab = Laya.Load.getRes("prefab/xxx"); 这个获取prefab直接就是个空 请问一下 这个到底是怎么...
来源: Laya_社区 发布时间: 20190304
...hero.prefab,b场景也包含预制体hero.prefab 在a场景通过Laya.Pool.getItemByCreateFun("hero", this.pHero.create, this.pHero)创建对象,同时给对象设置位置,成功 跳转到b场景后,通过Laya.Pool.getItemByCreateFun("hero", this.pHero.create, this.pHero)获取这个对象时,...
来源: Laya_社区 发布时间: 20200309
...Complete(obj:Object):Void{一个预设变量.json = ojb一个sprite = Pool.getItemByCreateFun("自己起一个名字", this.一个预设变量.create, this.一个预设变量);} 2020-01-04 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 b...
来源: Laya_社区 发布时间: 20200104
... 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_社区 发布时间: 20190716
... 微博 QZONE 微信 月九 赞同来自: let box: Laya.Sprite = Laya.Pool.getItemByCreateFun("dropBox", this.dropBox.create, this.dropBox); 最新版本的引擎,创建预设只有这一个方法吗? 2018-12-14 0 1 分享 微博 QZONE 微信 潮巴巴 赞同来自: http://ask.layabox.com/questi...
来源: Laya_社区 发布时间: 20180607
...d") { Laya.Tween.clearAll(this._sp) let effect: Laya.Animation = Laya.Pool.getItemByCreateFun("deathEffect", this.createEffect, this); effect.pos(this._sp.x, this._sp.y); this._sp.parent.addChild(effect); effect.play(0, false); this.owner.removeSelf(); Laya.Pool.recover("flyCat", this.owner) } } cre...
来源: Laya_社区 发布时间: 20191019