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

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

221. 圆不跟谁 sprite 一起缩放? [ 72%]

...stSp.graphics.drawCircle(100, 100, 20, null, "ffffff"); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.MouseWheel);  this._rootSp.hitArea = new Laya.Rectangle(0, 0, 10000, 10000) this._rootSp.addChild(this.firstSp); Laya.stage.addChild(this._rootSp); }  private MouseWheel(e: Laya.Event) { let xs...

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

222. unity 通过laya 导出 灵异事件 [ 72%]

...ockArea.cs:340) UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:295) UnityEngi...

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

223. HttpRequest在网页上和APP上表现不一致 [ 72%]

... function(){console.log("http timeout test: timeout")};     hr.once(Laya.Event.COMPLETE, this, ()=>{console.log("http timeout test: success");});     hr.once(Laya.Event.ERROR, this, (e: any)=>{console.log("http timeout test: error " + e.toString());});     console.log("http timeout test:...

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

224. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 72%]

...MLHttpRequest`和`XMLHttpRequestUpload`都继承了同一个`XMLHttpRequestEventTarget`接口所以upload也具有上述事件。 ​ ## 在laya中怎么使用 laya中用HttpRequest对XMLHttpRequest进行了简单的封装,HttpRequest继承的是EventDispatcher,具有事件派发的功能。我...

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

225. tiledmap [ 72%]

... 赞同来自: 鼠标点击一个位置 在会调用有一个默认参数e:Event e.mouseX, Y 可以获得鼠标坐标。然后这个坐标和地图是能对应到某一个格子的。然后再取地图中的那个格子,就能知道那个格子 的地形是陆地还是水。 2018-07-23 0 0 分享 ...

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

226. startDrag 的 Bug? [ 72%]

startDrag 的 Bug? aaa.on(Event.DRAG_MOVE, this, onDragMove); aaa.startDrag(new Rectangle(0, 0, 100, 100), true, 0, 200);   private function onDragMove(e:Event = null):void { // 正常移动时, bbb 会和 aaa 坐标一至, 释放鼠标后也正常, 但 // BUG 出现在鼠标释放后 当aaa 进...

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

227. 怎么实现同一个工程内分包? [ 72%]

...lash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; import login.LoginView; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { remov...

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

228. 节点的visible在初始化的时候生效,但是在Event的方法里面不生效 为什么呢? [ 72%]

节点的visible在初始化的时候生效,但是在Event的方法里面不生效 为什么呢? 2017-09-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 不清楚你的具体操作...

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

229. [LayaAirIDE3]xcode切入切出声音不播放 [ 71%]

...切入切出,导致背景声音不播放问题。  Laya.stage.on(Laya.Event.BLUR, this, this.onBlur); Laya.stage.on(Laya.Event.FOCUS, this, this.onFocus);  private onBlur() {         // 暂停所有需要停止的逻辑         console.log("onBlur");         SoundManager.Instance.pau...

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

230. Templet资源删除不掉 [ 71%]

...          factory = new Templet();             factory.on(Event.COMPLETE, this, onSkeletonDataParsed); //            factory.on(Event.ERROR, this, onError); //            factory.parseData(texture, data, 60);             factory.loadAni("res/Dragon.sk");  ...

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