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

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

1. 自动图集配置 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...nable(): void { //需要先加载图集再使用,注意,图集要放到resources目录下或者在构建发布配置项里手动添加为始终包含的资源目录 Laya.loader.load("resources/aaa/test.atlas").then(() => {//更多资源加载方式,可查看《资源加载》文档 this.own...

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

2. 树状列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 94%]

...oll$bar.png", "atlas/comp/vscroll$down.png", "atlas/comp/vscroll$up.png", "resources/tree/clip_selectBox.png", "resources/tree/clip_tree_folder.png", "resources/tree/clip_tree_arrow.png"]; Laya.loader.load(res).then(() => { this.onLoadComplete(); }); } private onLoadComplete(e: any = null): void ...

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

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

...class LoaderDemo extends Laya.Script { onAwake(): void { this.loadTexture("resources/image/monkey2.png", 500);//需要在resources/image放入相应的资源 this.loadTexture("https://layaair.com/3.x/demo/resources/res/apes/monkey2.png"); } /**加载并显示图片 */ loadTexture(url: string, x: num...

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

4. 动画节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 87%]

...建完毕,此方法只执行一次 onAwake(): void { this.ani.source = "resources/role.atlas"; //接收动画数据源为图集 this.ani.autoPlay = true; //开启自动播放 this.ani.wrapMode = 0; //播放模式为正序播放模式(POSITIVE) this.ani.interval = 50; //动画播放的帧间隔...

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

5. 按钮组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

.../ 以下图片资源来自“引擎API使用示例”项目 this.skins = ["resources/res/ui/button-1.png", "resources/res/ui/button-2.png", "resources/res/ui/button-3.png", "resources/res/ui/button-4.png", "resources/res/ui/button-5.png", "resources/res/ui/button-6.png"]; // 计算将Button至于舞...

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

6. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...s() export class UI_TextArea extends Laya.Script { private skin: string = "resources/res/ui/textarea.png"; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { Laya.loader.load(this.skin).then( ()=&g...

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

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

...下资源来自“引擎API使用示例” private buttonSkin: string = "resources/res/ui/button-7.png"; private clipSkin: string = "resources/res/ui/num0-9.png"; private bgSkin: string = "resources/res/ui/coutDown.png"; counter: any; controller: any; currFrame: any; //组件被激活后执行,此...

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

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

...包括使用纹理压缩信息,打开.json文件如下: { "files": { "resources": [ "layabox.png" ] }, "config": [ { "sRGB": true, "filterMode": 1, "mipmap": true, "pma": false, "files": [ { "file": "0", "ext": "dds", "format": 3 }, { "file": "", "ext": "png", "format": 1 } ], "platforms": { "0"...

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

9. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...建完毕,此方法只执行一次 */ onAwake(): void { this.skins = ["resources/res/ui/input (1).png", "resources/res/ui/input (2).png", "resources/res/ui/input (3).png", "resources/res/ui/input (4).png"]; Laya.loader.load(this.skins).then( ()=>{ this.onLoadComplete(); } ); } private onLoadCom...

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

10. Spine渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...现类似以下提示的警告。 Failed to load 'http://localhost:18094/resources/ddlx_02/ddlx_02.atlas' Unexpected token 'd', "ddlx_02.pn"... is not valid JSON 这是由于,虽然spine的atlas和我们引擎的图集文件atlas同名,但不是同样的东西。我们的图集信息是Json格...

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