大约有 4,103 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0064 秒)
Laya_社区(3324) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
... Laya_Aaron 赞同来自: Laya.loader.load("abc.ttf",Laya.Handler.create(this, this.abc)); demo里没写预加载字体的代码, 先加载字体,然后再在回调方法里 初始化场景 abc():void{ GameConfig.startScene && Laya.Scene.open(GameConfig.startScene); ...
来源: Laya_社区 发布时间: 20191217
物体碰撞问题 var box_1 : Laya.MeshSprite3D = this.scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box_1.transform.translate(new Laya.Vector3(0, 5, 0)); var boxRigidBody_1 : Laya.Rigidbody3D = box_1.addComponent(Laya.Rigidbody3D); var boxShape...
来源: Laya_社区 发布时间: 20190602
...人 cike007 • 2017-08-27 16:20 var i=0; var t=new Laya.Timer(); t.loop(1,this, function () { i++; }) t.loop(1000,this, function () { console.log(i); i=0; }) 测试下 176*****233 • 2017-08-28 10:09 Timer是单例,不要实例它,直接使用Laya.timer.loop(); cike007 • 2017-08-28 13:32 @176***...
来源: Laya_社区 发布时间: 20170827
...spine 连续两次scale操作会闪一下 对一个spine进行缩放操作 this.skel.scale(0.9, 0.9); this.skel.scale(1, 1); spine会移动到左上角,在移回来 显示效果就是会闪一下 附件 : --> demo.zip 2019-04-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20190423
...SoundChannel的示例? SoundManager.playSound(_url, _loop, new Handler(this, _fn)); var channel:SoundChannel = new SoundChannel(); SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (channel.isSt...
来源: Laya_社区 发布时间: 20170116
...请: 与内容相关的链接 提交 3 个回复 zhouxiaodan 赞同来自: this.musicPath = "res/sound/bg.mp3"; this.soundPath = "res/sound/bianshen.mp3"; 为什么前面加../../就没法播放,去掉../../后就可以播放了呢? 2018-03-07 0 0 分享 微博 QZONE 微信 qian 赞同来自: ...
来源: Laya_社区 发布时间: 20180307
...7013用户 自己回答,以遍查找 Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseRoll); } // 鼠标滚动 private mouseRoll(e: Laya.Event): void { let value: number = e.delta; if (value > 0) {//滚轮滑动增量大于0,向上滚动 } else {//滚轮滑动增量小于0,向下滚动 } con...
来源: Laya_社区 发布时间: 20180411
... private var m_btn_auto:Button; m_mc_trade.on(Event.CLICK,this,onBtnClick); m_btn_auto.on(Event.CLICK,this,onBtnClick); 我有设置了点击事件了,但在点击事件onBtnClick内console.log('s')没有打印出来。而挂机按钮的就可以打印得到。这是怎么回事...
来源: Laya_社区 发布时间: 20170412
...99.5, 73); flower.mouseEnabled=true; flower.alpha=1; flower.on(Event.CLICK,this,function() { flower.scaleX=1.1; flower.scaleY=1.1; Laya.timer.once(100, this,function() { flower.scaleX=1; flower.scaleY=1; alert("My Name is Bear" + no); return; }) }); mallLayer._childs[0].addChild(flower); } 2017-01-1...
来源: Laya_社区 发布时间: 20170110
...CT事件,我在连接成功后,在一个EventDispatcher类这样抛出:this.event(CONNECT); 然后报错说this._$1_event不是一个方法 这是什么原因? 2017-08-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...
来源: Laya_社区 发布时间: 20170818