大约有 272 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0061 秒)
...ource = "resources/role.atlas"; //接收动画数据源为图集 Animation.size(600, 275); //设置节点大小 Animation.interval = 100; //动画播放的帧间隔时间为100毫秒 Animation.autoPlay = true; //开启自动播放 Animation.wrapMode = 2; //播放模式为pingpong播放模式(PINGP...
来源: Laya3.0_文档 发布时间: 20251010
...3 不要在Timer的循环里创建对象及复杂计算4.4 尽量少用autoSize与getBounds4.5 被try catch的函数执行会变得非常慢五、使用chrome的性能分析器5.1 CPU占用分析5.2 内存占用分析六、纹理压缩的使用性能优化 一、 内存优化方式 1.1 通过对象...
来源: Laya3.0_文档 发布时间: 20251010
...数组:["a.png","b.png"];复杂数组[{url:"a.png",type:Loader.IMAGE,size:100,priority:1},{url:"b.json",type:Loader.JSON,size:50,priority:1}]。 Optional complete: Handler 加载结束回调。根据url类型不同分为2种情况:1. url为String类型,也就是单个资源地址,如果加...
来源: Laya3.0_api 发布时间: 20231115
...2-1) Offset:矩形相对于Sprite对象,X轴,Y轴的偏移量。 Size:矩形的尺寸,默认使用百分比,也可以取消百分比勾选,采用像素值设置。 Percent:当勾选时,矩形的尺寸为Sprite对象尺寸的百分比,当不勾选时,矩形的尺寸为像素...
来源: Laya3.0_文档 发布时间: 20251010
...c 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.skin = src; } } 运行效果: (图2-1) List的其他属性也可以通过代码来设置,有兴趣...
来源: Laya3.0_文档 发布时间: 20251010
...usedResources recoverToPool Constructors constructor new RenderTextureCube(size: number, colorFormat: RenderTargetFormat, depthFormat: RenderTargetFormat, generateMipmap: boolean, multiSamples: number): RenderTextureCube Overrides RenderTexture.constructor Defined in laya/d3/resource/RenderTextureCu...
来源: Laya3.0_api 发布时间: 20231102
...usedResources recoverToPool Constructors constructor new RenderTextureCube(size: number, colorFormat: RenderTargetFormat, depthFormat: RenderTargetFormat, generateMipmap: boolean, multiSamples: number): RenderTextureCube Overrides RenderTexture.constructor Defined in laya/resource/RenderTextureCube....
来源: Laya3.0_api 发布时间: 20231115
...是粗体 letter-spacing:10px; 字间距 font-family:宋体; 字体 font-size:20px; 字体大小 font-weight:bold:none; 字体是否是粗体,功能同bold color:#ff0000; 字体颜色 stroke:2px; 字体描边宽度 strokeColor:#ff0000; 字体描边颜色 padding:10px 10px 20px 20px; 边缘的距...
来源: Laya2.0_api 发布时间: 20190513
...awRect drawTarget drawTargetBlurFilter drawText drawTexture drawTextureWithSizeGrid drawTextureWithTransform drawTriangles fillBorderText fillBorderWords fillRect fillText fillWords fillWords11 filltext11 flush getAlignLength popRT pushRT restore restoreTransform save saveTransform scale setColorFil...
来源: Laya3.0_api 发布时间: 20231102
...态改变item的大小: 在itemRenderer的内部使用width、height或size改变item的大小。 item建立对内部元件的关联,然后在itemRenderer里修改内容触发内部元件的改变,从而自动改变item高度。例如item建立了一个对内部某个可变高度文本的高...
来源: Laya3.0_文档 发布时间: 20251128