• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,538 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0079 秒)

501. Sprite-屏幕截图 [ 79%]

...ar btn = new Laya.Button(skin,name); Laya.stage.addChild(btn); btn.on(Laya.Event.CLICK,this,cb); btn.size(147,55); btn.name = name; btn.right = 10; btn.top = index * (btn.height + 10); return btn; } onLoaded(){ for (let index = 0; index = ["res/button.png", "res/button.png", "res/button.png"]; priva...

来源: Laya2.0_示例 发布时间: 20251209

502. Laya.Socket 是不是不支持Safari浏览器二进制格式的数据传输? [ 79%]

...); // this.socket.connectByUrl("ws://localhost:8989"); this.socket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); } priva...

来源: Laya_社区 发布时间: 20171129

503. 怎么给舞台设置焦点 [ 79%]

...容相关的链接 提交 4 个回复 ymsdandan 赞同来自: 监听一下Event.BLUR和Event.FOCUS试试吧,(格式Laya.stage.on(Event.BLUR)) 2017-11-08 0 0 分享 微博 QZONE 微信 yllczjh 赞同来自: 我得需求是鼠标光标默认在文本框上 ,加监听应该解决不了吧...

来源: Laya_社区 发布时间: 20171108

504. 如何获取安卓虚拟键的高度 [ 79%]

...链接 提交 2 个回复 qian 赞同来自: 你可以尝试监听舞台的Event.RESIZE、Event.FOCUS或者Event.INPUT尝试获取Laya.Browser.width、Laya.Browser.height,让初始化的宽高减去发生变化时可视区域的宽高,就是键盘的宽高! 2018-03-26 0 0 分享 微博 QZONE ...

来源: Laya_社区 发布时间: 20180326

505. laya.ui.CheckBox [ 79%]

...ll Classes | Index | Frames No Frames CheckBoxProperties | Methods | Events Packagelaya.uiClasspublic class CheckBoxInheritanceCheckBox Button UIComponent Sprite Node EventDispatcher Object CheckBox 组件显示一个小方框,该方框内可以有选中标记。 CheckBox 组件还可以显...

来源: Laya2.0_api 发布时间: 20190513

506. 3D射线穿透UI问题 [ 79%]

... "切换动作")) as Laya.Button; button.name = "abc"; Laya.Button.on(Laya.Event.CLICK, this, function:void{ 具体实现  });     在另一个方法里面 Laya.stage.on(Laya.Event.MOUSE_UP, this, function(evt:Laya.Event):void{     console.log("aaaaa = " + evt.tager.name);  //这里名字是...

来源: Laya_社区 发布时间: 20180416

507. laya.display.FrameAnimation [ 79%]

...sses | Index | Frames No Frames FrameAnimationProperties | Methods | Events | Constants Packagelaya.displayClasspublic class FrameAnimationInheritanceFrameAnimation AnimationPlayerBase Sprite Node EventDispatcher ObjectSubclasses EffectAnimation 关键帧动画播放类。 Public Properties ...

来源: laya_api 发布时间: 20170929

508. Unhandled promise rejection: Error: Cannot navigate to invalid URL [ 79%]

...node_modules/noice-json-rpc/lib/noice-json-rpc.js:42:48)     at emitOne (events.js:101:20)     at LoggingSocket.emit (events.js:191:7)     at Receiver.receiverOnMessage (/Applications/LayaAirIDE.app/Contents/Resources/app/extensions/laya-debug2/node_modules/ws/lib/websocket.js:719:20)     at...

来源: Laya_社区 发布时间: 20200113

509. 骨骼动画进阶(JavaScript-2D进阶篇(JS)-动画进阶) [ 79%]

...a.WebGL); //创建动画模板 templet=new Laya.Templet(); templet.on(Laya.Event.COMPLETE,this,parseComplete); templet.on(Laya.Event.ERROR,this,onError); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); function onError() { console.log("parse error"); } function parseComplete() ...

来源: Laya2.0_文档 发布时间: 20210715

510. Button连续点击触发MOUSE_OUT事件问题 [ 79%]

...============ button width: 155, height: 155 mouse position, x: 374, y: 835 event type: click button width: 155, height: 155 mouse position, x: 374, y: 835 event type: mouseout button width: 155, height: 155 mouse position, x: 374, y: 835 event type: click button width: 155, height: 155 mouse positio...

来源: Laya_社区 发布时间: 20180724