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

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

121. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 60%]

...Laya.loader.load([textureFile], Laya.Handler.create(this, () => { this.aaa.skin = textureFile; })); ``` #### 3、2D图集的使用 对于2D图集,预加载图集atlas文件即可,由于进行纹理压缩转换的时候,会自动在图集atlas中添加纹理压缩文件信息,所以引擎在...

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

122. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 60%]

...//this.addChild(this.text); } public setImg(src: string): void { this.img.skin = src;             } }  /* class Main {     constructor() {         wx.onMessage(data => {             console.log(data);             if (data.isDisplay) {       ...

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

123. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

...aya.Texture) => { let img = new Laya.Image(); img.texture = res; // img.skin = url; //ui组件直接设置skin也可以 img.pos(x, y); this.owner.addChild(img); }); } } 1.2 带类型的加载方式 有的时候,网络资源没有后缀名,又或者,图片xxx.png并非是当成Texture使用...

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

124. 位图切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

...引。 时间间隔 interval 切片动画的播放时间间隔。 纹理 skin 切片动画的纹理。 九宫格 sizeGrid 图像资源的有效网格数据(九宫格数据)。 资源分组 group 加载分组,设置后可以按组管理资源。 点击依据宽高切片可以切换位图切片...

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

125. 在2.0里如何调用在编辑模式下创建的对话框 [ 60%]

...":1, "child":[ { "x":15, "type":"Image", "props":{"y":0,"x":0,"width":640,"skin":"comp/img_bg.png","sizeGrid":"25,5,5,5","height":480}, "nodeParent":1, "label":"Image", "isDirectory":false, "isAniNode":true, "hasChild":false, "compId":3, "child":[ ] }], "animations":[ { "nodes":[ ], "name":"ani1", "...

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

126. 进度条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 58%]

...rogressBar的特有属性如下: (图1-4) 属性 功能说明 纹理 skin 进度条的底图资源 九宫格 sizeGrid 进度条底图资源的有效缩放网格数据(九宫格数据) 当前值 value 进度条的进度值,范围在0到1之间 设置ProgressBar组件的属性value的值...

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

127. 一篇了解所有的LayaAir文本组件(TypeScript-LayaAir基础篇(TS)-文本) [ 58%]

...小的前面。 > - FillText组件在2.8版本之前只能添加在没有skin填充的空显示节点下,2.8开始,可以添加到任意UI节点下。 ### 二、位图显示文本组件 位图显示文本,是一种基于位图的文本,虽然显示的是文本的内容,其本质还是位...

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

128. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 58%]

...width / 2, 0 ); this._doll_img.pos( this.width / 2, y_sp ); this._doll_img.skin = doll_item.img;  /** 初始化变量 */ this._to_remove = 0;  // 设置终点 // tofix: this.x = BaseUtils.rand_number( this._fly_site.x, this._fly_site.x + this._fly_site.w ); this.y = BaseUtils.rand_number( this._fl...

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

129. 压缩纹理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

... let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500,100); img.skin = "resources/layabox.png"; //纹理压缩的图片的路径 } onStart() { Laya.Stat.show(0, 0); //性能面板 } } 发布后,使用的图片就是压缩后的图片了。 3.2 图集纹理压缩的加载 对于2D图集...

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

130. laya.ui.Image [ 54%]

... Image和Clip组件是唯一支持异步加载的两个组件,比如img.skin = "abc/xxx.png",其他UI组件均不支持异步加载。 See alsolaya.ui.AutoBitmapPublic Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值...

来源: laya_api 发布时间: 20170929