大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0094 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
... 关注: 4 人 linyewen • 2022-02-25 17:45 这么修改也会报错吧,this._events[type]是个数组 linyewen • 2022-02-28 11:05 @linyewen:况且增加的this._events[type]上面不是已经判断过了吗 Laya_Yan • 2022-02-28 11:52 @linyewen:你按照图中还会报错吗?报错的话...
来源: Laya_社区 发布时间: 20220225
...s Sprite { private var testPan:Sprite; public function MainUi() { super(); this.graphics.drawRect(0,0,500,500,"#fff0cc"); testPan = new Sprite(); testPan.name = "testPan"; this.addChild( testPan ); testPan.pos( 300,300); testPan.graphics.drawRect(0,0,90,100,"#faaff0"); testPan.on(Event.CLICK,this,on...
来源: Laya_社区 发布时间: 20161124
...ate receiveHandler(msg: any = null): void { ///接收到数据触发函数 this._msgByte.clear(); this._msgByte.writeArrayBuffer(msg);//把接收到的二进制数据读进byte数组便于解析。 this._msgByte.pos = 0;//设置偏移指针; } 发现一个问题就是如果数据传输比较平...
来源: Laya_社区 发布时间: 20171214
...emo里面的子弹,有没有可能纯代码生成的?(就下面这个this.bullet可以不是一个prefab吗?) let flyer: Laya.Sprite = Laya.Pool.getItemByCreateFun("bullet", this.bullet.create, this.bullet); 官方再忙,也帮忙回答一下这个问题吧:“是不是每一个对象...
来源: Laya_社区 发布时间: 20181115
...用呢? 我已经设置了button的Var 为bt1,在项目代码中写 this.bt1,会提示没有bt1 我在场景编辑器中按f12导出,在项目代码中写 this.bt1,还是会提示没有bt1。我下载了微信飞机ts版本,看了下人家的项目代码里输入this.bg1是完全...
来源: Laya_社区 发布时间: 20191108
...不希望他一进入场景就播放,所以我在onAwake里面设置了this.ani1.autoPlay = false ,但设置无效,动画还是进入场景就播放 而后我在动画状态机里面吧Play on Wake取消掉了,动画就不会自动播放了,但是我看了GMovieClip组件文档,没有play...
来源: Laya_社区 发布时间: 20251120
...预制体hero.prefab 在a场景通过Laya.Pool.getItemByCreateFun("hero", this.pHero.create, this.pHero)创建对象,同时给对象设置位置,成功 跳转到b场景后,通过Laya.Pool.getItemByCreateFun("hero", this.pHero.create, this.pHero)获取这个对象时,获取成功,设置对象位...
来源: Laya_社区 发布时间: 20200309
...加dialog添加了控制脚本,并在脚本中的onstart函数中添加this.owner.popup(),在laya调试运行显示居中了。但是到微信里面报this.owner.popup undefined错误 2018-12-12 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定,...
来源: Laya_社区 发布时间: 20181211
...rial; var rotation = new Laya.Vector3(0, 0.01, 0); Laya.timer.frameLoop(1, this, function () { layaMonkey.transform.rotate(rotation, false); }); function initShader() { var attributeMap = { 'a_Position': Laya.VertexElementUsage.POSITION0, 'a_Normal': Laya.VertexElementUsage.NORMAL0 }; var uniformMap...
来源: Laya_示例 发布时间: 20260303
...x是-1,SimpleSingletonList的remove会继续进过逻辑: var end = this.elements[this.length]; this.elements[index] = end; end._setIndexInList(index); 这时候就会把队尾的元素插到下标-1那边。 这样的情况出现第二次以上时,就会把上一次被丢到下标-1的...
来源: Laya_社区 发布时间: 20220707