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

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

261. unity资源导出的bug [ 68%]

...2) UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:266) UnityEngine.Experimental.UIElements.IMG...

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

262. 引擎中的修改意见 [ 68%]

...}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

263. LAYABOX游戏实时语音之APP版本 [ 68%]

...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

264. a、b 两个按钮响应同一个点击回调,但event的 target和currentTarget相同都是stage对象,怎么解释呀 [ 68%]

a、b 两个按钮响应同一个点击回调,但event的 target和currentTarget相同都是stage对象,怎么解释呀 实际代码中,两个按钮通过currenttarget,确实能够区分开来,但是打印的值,currenttarget和target值都是stage对象,这个问题谁能给解释下...

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

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

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

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

266. 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

267. 最新版本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

268. 如何失去鼠标焦点 [ 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

269. 发布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

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

...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