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

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

1731. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 46%]

...otected function createChildren():void { super.createChildren(); var index:Number = getChildIndex(_bg); addChildAt(_progress = new Image(),index + 1); } override protected function changeValue():void{ super.changeValue(); _proMask.scaleX = _value / _max; _proMask.repaint(); console.log("改变值: "...

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

1732. httpRequest send返回Request failed Status:0 [ 46%]

...URL, id, data) { // private completeHandler(data: Object, URL: string, id: number): void { //加载完成返回的data是arraybuffer; //......这里处理我们加密的图片数据,假设我们的图片加密数据是在图片的前面写入了四个字节的数据 //......解密逻辑开始处...

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

1733. [LayaAirIDE3]Laya.loader.on(Event.ERROR, this, this.onError) 无法侦听到加载资源失败 [ 46%]

...    }      // 加载进度侦听器     private onLoading(progress: number): void     {         console.log("加载进度: " + progress);     }      private onError(err: string): void     {         console.log("加载失败: " + err);     }       运行后得到的结...

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

1734. setSubPixels画布擦除不掉 [ 46%]

...ath.random()); let tex:Laya.Texture = Laya.Loader.getRes(this.bUrl); let x:number = this._testStatus == true ? 0:50;//Math.random()>0.5 ? 50 : 0; this._testStatus = !this._testStatus; // let canvasInfo = this.getCanvasWidthHeight(); let ctx = new Laya.Context(); // let w = canvasInfo.w//tex.width...

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

1735. 谁能提供一份.fnt资源吗,万分感谢 [ 45%]

...fnt内容格式也可以,谢谢!    我这个使用不了{"file":"st_number.png","frames":{ "0":{"x":50,"y":184,"w":47,"h":58,"offX":0,"offY":0,"sourceW":47,"sourceH":58}, "1":{"x":99,"y":115,"w":32,"h":57,"offX":0,"offY":0,"sourceW":32,"sourceH":57}, "2":{"x":97,"y":58,"w":48,"h":55,"offX":0,...

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

1736. list图片路径没问题.为什么图片就是不显示.啊啊啊也,求解答 [ 45%]

...nitureList); } private __renderFurnitureItem(cell:FurnitureItemCell, index:number):void { cell.furnitureInfo = cell.dataSource; } http://layaair.ldc.layabox.com ... DList 官方例子也有。 你不写逻辑,代码它自己怎么知道你要显示图片呢~~~~~ z624697 • 2018-03-21 16:55 恩恩...

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

1737. [LayaAir3]调用renderTexture.getDataAsync且同时勾选camera的hdr或msaa,webgl必报错 [ 45%]

...ext | WebGL2RenderingContext = Laya.WebGLEngine.instance.gl; let errorCode:number = gl.getError(); if(errorCode != 0) {     console.log("webgl报错了,错误代码为" + errorCode); }   3 camera勾选hdr或者msaa   运行报错 webgl报错了,错误代码为 1282   不勾选hdr msaa或者...

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

1738. 使用laya官方示例代码制作微信小游戏无法显示 [ 45%]

...eateLabel(color: string, strokeColor: string): Label { const STROKE_WIDTH: number = 4; var label: Label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor...

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

1739. 在List渲染的时候,在滚动一个list的时候,如何实现另一个list也跟着滚动,并且两个list同时滚动一模一样。 [ 45%]

...list渲染 */ private OnRankLisLabRender(item:component.UIButton, index: number): void { item.name = index.toString(); item.onClick(this,this.OnCliickItem); } /** 点击item单个道具的时候*/ private OnCliickItem(item: component.UIButton) { let index = parseInt( item.name ); }

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

1740. 我在dialog a上继续弹出dialog b 。需要关闭b的时候,a依然存在。怎么做? [ 45%]

...击其中的任何一个list item,触发方法: private onSelect(index:number):void { console.log("当前选择的索引:" + index); //this.theItem = new DlgNote2(); //this.theItem.popup(); Laya.Scene.open("note2Dlg.scene"); } ——就是这里:我希望打开b的时候...

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