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

大约有 598 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0051 秒)

471. 列表组件 · LayaAir3.0文档 · LAYABOX [ 52%]

...log("当前选择的索引:" + index); } } class Item extends Laya.Box { static WID: number = 373; static HEI: number = 85; private img: Laya.Image; constructor() { super(); this.size(Item.WID, Item.HEI); this.img = new Laya.Image(); this.addChild(this.img); } setImg(src: string): void { this.img....

来源: Laya3.0_文档 发布时间: 20230927

472. 背景音乐文件太大 播放延迟 [ 52%]

...der.SOUND, 0, true, null, false)         })       public static playBackGroundMusic(url: string, start: number) {         if (soundMsg.isPlayingBgMusic) {             let path = "remote/music/" + url + '.mp3';             Laya.SoundMana...

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

473. Laya.Browser获取宽高数值会变化,iphone6第一次加载正确,刷新几次就变大了。 [ 52%]

...次加载正确,刷新几次就变大了。 class GameMain{     public static pxTimes: number = Laya.Browser.height / Laya.Browser.clientHeight;     constructor()     {         console.log('ch=' + Laya.Browser.clientHeight + ', h=' + Laya.Browser.height + ', pxTimes=' + GameMain.pxTimes)...

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

474. [0]2.13.3 drawToCanvas转出图片bug [ 51%]

...vas里反预乘来解决这个问题 bin\libs里找到laya.core.js,找到static drawToCanvas方法 ....不变 var dt = ctx._targets.getData(0, 0, canvasWidth, canvasHeight); //增加开始,进行反预乘处理 for (var i= 0, len= dt.length; i < len; i += 4) { var alpha = dt[i + 3] / 255.0; i...

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

475. 我想把flex项目转为laya ts项目,转换过程 mx.containers.Canvas报错 [ 51%]

...               //记录当前机柜             public static var currentCabinet:Cabinet;                          public function isInCab():Boolean             {                 if(this.cab.mouseX<0 || this.cab.mouseX>this.cab.width) r...

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

476. Laya3D 贴图读取时参数mipmap修改无效,请问如何去掉默认的mipmap [ 51%]

...适合的!比如使用这个模式 /**寻址模式_不循环。*/ public static const FILTERMODE_TRILINEAR:int = 2; 或者对anisoLevel大小进行设置 filterMode 进行修改 具体效果需要你自己调试 这个一样可以达到控制远近效果的! 2018-10-27 0 1 分享 微博 QZONE ...

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

477. DOMException: The play() request was interrupted by a call to pause [ 51%]

...频繁播放声音导致 /** 当前引擎版本。*/         public static var version:String = "1.7.8"; 附件 : --> src.zip 2017-08-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 ...

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

478. http请求接口时,app闪退。这是http请求的一个demo 哪位大佬帮看一下 [ 51%]

...回复 xyz 赞同来自: 看来还是要自己领取悬赏了。 private static onRequestComplete(hr:Laya.HttpRequest, call:Laya.Handler):void { call.runWith(hr.data); Http._requests.push(hr); } 2019-06-10 0 1 分享 微博 QZONE 微信 1560063291用户 赞同来自: 已解决,联系我 xyz 2019-0...

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

479. laya.display.AnimationBase_API3.0 [ 51%]

...nt pivotX pivotY rotation scaleX scaleY scene scrollRect skewX skewY stage staticCache texture timer transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addLabel bubbleEvent callLater clear clearTimer co...

来源: Laya3.0_api 发布时间: 20231115

480. laya.ui.VBox_API3.0 [ 51%]

...votY right rotation scaleX scaleY scene scrollRect skewX skewY space stage staticCache texture timer toolTip top transform url viewport visible width x y zOrder Methods _initialize _processActive _setWidth addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearT...

来源: Laya3.0_api 发布时间: 20231115