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

大约有 22 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0038 秒)

1. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 100%]

...== 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObjectURL(blob); document.body.appendChild(img); } } xhr.send(); 上面这...

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

2. 启动画面LoadingView · LayaAir3.0文档 · LAYABOX [ 97%]

... 伪代码如下: var nPercent=0; var image1 = document.createElement('img'); image1.onload=function() { if(window.loadingView){ nPercent+=33; window.loadingView.loading(nPercent); } } image1.src = "a.png"; var image2 = document.createElement('img'); image2.onload=function() { if(window.loadingVie...

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

3. 通用发布 · LayaAir3.0文档 · LAYABOX [ 88%]

...源和其它资源分开存放。 3,atlas目录下,有两张图片(img_bg100-0.png和img_bg100-1.png)和子文件夹ui1、ui2,里面分别有很多散图,同时ui1目录下还有 a子文件夹。 如果不进行图集打包,那么在发布后,输出目录下的 atlas 目录里都是...

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

4. 项目工程目录说明 · LayaAir3.0文档 · LAYABOX [ 83%]

...ht reserved,powered by LayaAir Engine更新时间: 2024-05-28 14:54:09 img{cursor:pointer}

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

5. VScode本地调试 · LayaAir3.0文档 · LAYABOX [ 82%]

...ht reserved,powered by LayaAir Engine更新时间: 2023-03-03 17:34:15 img{cursor:pointer}

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

6. 基础文本 · LayaAir3.0文档 · LAYABOX [ 81%]

...持的UBB语法如下表所示: 语法结构 示例代码 语句说明 [img]image_url[/img] [img]atlas/comp/image.png[/img] 显示一张图片 [url=link_href]text[/url] [url='www.layabox.com']蓝亚盒子[/url] 显示一个超级链接 [b]text[/b] [b]这些字是粗体[/b] 设置文本为粗体 [i...

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

7. 列表组件 · LayaAir3.0文档 · LAYABOX [ 81%]

...st = list; } private updateItem(cell: Item, index: number): void { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } class Item extends Laya.Box { static WID: number = 373; static HEI: number = 85; private img: Laya.Image; co...

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

8. HTML文本 · LayaAir3.0文档 · LAYABOX [ 80%]

...签,p标签会自动换行,div不会,比如:<p>abc</p> * img:图片标签,比如:<img src='res/boy.png'></img> * br:换行标签,比如:<div>abc<br/>def</div> * style:样式标签,比如:<div style='width:130px;height:50px;color:#ff0000'>ab...

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

9. 和原生Dom交互 · LayaAir3.0文档 · LAYABOX [ 79%]

...'</svg>'; var DOMURL = window.URL || window.webkitURL || window; var img = new Image(); var svg = new Blob([data], {type: 'image/svg+xml'}); var url = DOMURL.createObjectURL(svg); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); 怎么运...

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

10. 自定义物理引擎 · LayaAir3.0文档 · LAYABOX [ 67%]

...ht reserved,powered by LayaAir Engine更新时间: 2024-05-28 14:54:08 img{cursor:pointer}

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