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

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

271. LAYABOX游戏实时语音之APP版本 [ 67%]

...LoginView extends ui.LoginUI { constructor() { super(); this.login.on(Laya.Event.CLICK, this, this.Loginyim); this.joinroom.on(Laya.Event.CLICK, this, this.JoinRoom); this.RecordAudio.on(Laya.Event.MOUSE_DOWN, this, this.StartRecordAudio); this.RecordAudio.on(Laya.Event.MOUSE_UP, this, this.StopReco...

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

272. 引擎中的修改意见 [ 67%]

...}else if(a.length == 1){ lang(a[0]); }else { lang(""); } isChanged = true; event(Event.CHANGE); } }public function lang(text:String, args:Array = null):void { text = langPacks && langPacks[text] ? langPacks[text] : text; if (!args || args.length <= 0) { this._text = text; } else { for (va...

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

273. 点击拖动图片,当鼠标移出再移回舞台中时如何保持点击状态 [ 67%]

...舞台中时如何保持点击状态 比如这个打砖块的游戏。用Event.MOUSE_DOWN + startDrag来实现拖动底部的拍子,在电脑上玩时我快速左右拖动来档球,就很容易将鼠标移出舞台,当再移进舞台时,发现拍子不和鼠标走了,需要重新点击,...

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

274. 最新版本IDE,如何获取http返回的json数据 [ 67%]

...a.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.once(Event.PROGRESS,this,processHandler);  var sendData = {account:"aaa",password:"bbb"} xhr.send("http://xxx/login", JSON.stringify(sendData...

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

275. ANDORID 切后台 怎么监听啊 [ 67%]

... 怎么监听啊 ANDORID 切后台 怎么监听啊?  Laya.stage.on(Laya.Event.BLUR, this, this._on_blur); Laya.stage.on(Laya.Event.FOCUS, this, this._on_focus);这个没有用啊。 2018-05-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

276. 发布web,选择压缩混肴js后,运行报错,正常编译后可以运行项目 [ 67%]

...LayaSample.max.js:1)     at i.runWith (LayaSample.max.js:1)     at t.e.event (LayaSample.max.js:1)     at new i (LayaSample.max.js:1)     at Function.t.regSession (LayaSample.max.js:1)     at t.i.initSession (LayaSample.max.js:1)     at Function.t.INIT (LayaSample.max.js:1)     at i.ex...

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

277. 如何失去鼠标焦点 [ 67%]

...h:1200px; height:600px"); document.body.appendChild(div); document.body.addEventListener("touchmove", touchmoves, false); function touchmoves(e) { if(window.pageYOffset<0) { div.style.visibility="hidden";//隐藏div Laya.MouseManager.instance.disableMouseEvent; e.preventDefault();//停止滑动...

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

278. FBX导出Index was outside the bounds of the array [ 67%]

...0) UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout) (at D:/unity/Modules/UIElements/IMGUIContainer.cs:266) UnityEngine.Experimental.UIElements.IMGUIContainer.Handl...

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

279. List组件Mousehandler事件 [ 67%]

...以在mouseHandler下对鼠标事件进行判断和使用,譬如e.type=Event.CLICK,对事件类型进行判断,然后进行逻辑的实现! 2018-01-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 182*****278 相关问题 分享...

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

280. 使用百度地图显示当前位置(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 66%]

...dy.appendChild(mapDiv); // 适应窗口尺寸 refit(); Laya.stage.on(Laya.Event.RESIZE, this, refit); // 初始化地图 map = new BMap.Map(mapDiv); // 禁用部分交互 //map.disableDragging(); map.disableKeyboard(); map.disableScrollWheelZoom(); map.disableDoubleClickZoom(); map.disablePinchTo...

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