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

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

1801. 部分IOS机型在加载mp3音频文件时出错,资源加载异常 [ 77%]

...    ];         Laya.loader.load(resArray, Laya.Handler.create(this, () => { this.OnLoaded() }), null, Laya.Loader.ATLAS);     }在IOS部分机型,如苹果8上,会出现资源加载出错,截图如附件一所示。 Load(): void {         var resArray: Array<any&g...

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

1802. 用Geolocation获取地理位置信息(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 77%]

...// 尝试获取当前位置 Geolocation.getCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确度:' + info.ac...

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

1803. 微信web H5 加载微信头像的时候 有些能显示有些不行 [ 77%]

...像的时候 有些能显示有些不行  data.face 是微信头像地址 this.uFace 是 laya.ui.Image this.uFace.loadImage(data.face, 0, 0, 50, 50, Handler.create(this, graphicsImg)) function graphicsImg() { //创建遮罩对象 var cMask = new Laya.Sprite(); //画一个圆形的遮罩区域 cMas...

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

1804. 网络和格式-XML [ 76%]

...p(); })(); function setup() { var xmlValueContainsError = "item aitem bsomethis..."; var xmlValue = "item aitem bsomethings..."; proessXML(xmlValueContainsError); console.log("\n"); proessXML(xmlValue); } function proessXML(source) { try { var xml = Utils.parseXMLFromString(source); } catch (e) { co...

来源: Laya_示例 发布时间: 20251219

1805. [LayaNative2]Laya2.0 更新最新的2.13.9.3 16kb库会时不时的断网,导致游戏直接卡主 [ 76%]

...                 ***        I  JSWebSocketDelegate::onClose()this={public}x ws={public}x 2025-11-14 10:03:41.989  9605-10051 LayaBox                 ***          I  WebSocket onSocketCallback connection closing 30 reason 2025-11-14 10:03:41.995  9605-9751  LayaBox  ...

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

1806. Object.defineProperty is not a function [ 76%]

...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 用微信开发者调试的时候出现document.createTextNode is not a function api readFile success callback function...

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

1807. 超出文本区域的处理&滚动文本(ActionScript-LayaAir基础篇(AS3)-文本) [ 76%]

... txt.color = "#ffffff"; Laya.stage.addChild(txt); txt.on(Event.MOUSE_DOWN, this, startScrollText); } /* 开始滚动文本 */ private function startScrollText(e:Event):void { prevX = txt.mouseX; prevY = txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, scrollText); Laya.stage.on(Event.MOUSE_UP, this...

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

1808. 父元素,子元素,兄弟元素 [ 76%]

...:e:Laya.Event,这个能数有阻止点击事件冒泡 点击事件: this.btnHome.on(Laya.Event.CLICK, thisthis.homeClick);   private homeClick(e) { //防止点击事件穿透 e.stopPropagation(); } 2018-10-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...

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

1809. Uncaught TypeError: Cannot read property '_tf' of null [ 76%]

...le(1,1);     Tween.to(image,{scaleX:0.5,scaleY:0.5},600,null,new Handler(this,tweenGuide,[image]),500); }   public function tweenGuide1(image:Image):void {    Tween.to(image,{x:100,y:100},600,null,new Handler(this,tweenGuide1,[image]),500); } ********************************************【End...

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

1810. 内存释放问题 [ 76%]

...TEXT } // 协议文件 ]; Laya.loader.load(uiResArray, Laya.Handler.create(this, onCompleted), Laya.Handler.create(this, ProgressPanel.showGameLoadingProgressPanel, null, false)); } /** * 显示一个模块面板 * 需要 资源altlas的名称和面板的类全名 * @static * @param {string[]} resAl...

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