大约有 730 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0050 秒)
Laya_社区(632) Laya2.0_文档(49) Laya3.0_文档(29) laya_api(4) Laya_示例(4) Laya3.0_api(4) Laya2.0_示例(4) Laya2.0_api(4)
...图片集合(多张图片,通常是序列帧图)、图集文件(.atlas或.json后缀)、动画文件(.ani后缀)三种。 #### 2.2.1 用序列帧图片创建 打开`资源管理器`,我们将多张美术资源`同时选中`,`拖拽`到`source`属性栏,然后选中场景中刚刚...
来源: Laya2.0_文档 发布时间: 20210714
...图片集合(多张图片,通常是序列帧图)、图集文件(.atlas或.json后缀)、动画文件(.ani后缀)三种。 #### 2.2.1 用序列帧图片创建 打开`资源管理器`,我们将多张美术资源`同时选中`,`拖拽`到`source`属性栏,然后选中场景中刚刚...
来源: Laya2.0_文档 发布时间: 20210714
...dth >> 1, Laya.stage.height >> 1); // 位置 this.clip.skin = "atlas/comp/clip_num.png"; // 皮肤 this.clip.interval = 1000; // 切片动画的播放时间间隔1000毫秒 this.clip.clipX = 10; // 切片x轴数量 this.clip.autoPlay = true; // 动画自动播放 } } 二、通过代码...
来源: Laya3.0_文档 发布时间: 20251010
...图片集合(多张图片,通常是序列帧图)、图集文件(.atlas或.json后缀)、动画文件(.ani后缀)三种。 #### 2.2.1 用序列帧图片创建 打开`资源管理器`,我们将多张美术资源`同时选中`,`拖拽`到`source`属性栏,然后选中场景中刚刚...
来源: Laya2.0_文档 发布时间: 20210715
...作。代码如下: var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload =...
来源: Laya3.0_文档 发布时间: 20230303
... // image.crossOrigin = ""; image.src = "res/atlas/pixel.png"; image.onload = function() { // 界面上按钮所在的位置以及按钮的宽高 drawImage(image, 462, 194, 156, 48, 0); // ...
来源: Laya_社区 发布时间: 20200604
...行 this.txtin.overflow = "scroll"; //文本溢出 // this.txtin.skin = "atlas/comp/textinput.png"; //皮肤 this.txtin.bgColor = "#19a4f1"; //背景颜色 this.txtin.borderColor = "#f6ff03" //边框颜色 this.txtin.editable = true; //可编辑状态 // this.txtin.type = "password"; //输入框类...
来源: Laya3.0_文档 发布时间: 20251010
...下: ```JavaScript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = ...
来源: Laya2.0_文档 发布时间: 20210715
... onAwake(): void { this.btn.scale(5, 5); //放大五倍 this.btn.skin = "atlas/comp/button.png"; //皮肤 this.btn.stateNum = 3; //皮肤状态 this.btn.label = "确定"; //文本标签 this.btn.labelFont = "宋体"; //文本标签字体 this.btn.labelSize = 20; //文本标签字体大小 this.btn.l...
来源: Laya3.0_文档 发布时间: 20251010
...下: ```javascript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = ...
来源: Laya2.0_文档 发布时间: 20210714