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

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

721. 输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 35%]

...行 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

722. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 34%]

...下: ```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

723. 按钮组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 33%]

... 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

724. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 33%]

...下: ```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

725. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 33%]

...下: ```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

726. Unity转LayaAir差异说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 32%]

...bp 音频 .mp3、.wav 视频 .mp4、.webm 字体 .ttf、.fnt Spine .json、atlas、.skel TiledMap .tsx、.tmx、.tx 二、资产 2.1 常见资产类型 LayaAir中常见的资源如下: 文件的后缀 文件类型说明 .laya 项目工程文件,位于项目根目录。例如,"项目名.laya" ....

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

727. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 31%]

...          }             else if (type === Loader.ATLAS) {                 if (data.frames) {                     var toloadPics = ;                     if (!this._data) {                    ...

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

728. ts加密md5码封装 [ 31%]

... Base64加密 手机客户端的本地资源文件怎么加密 对图集 atlas和 png 加密后,应该怎么加载解密 LayaResourceEncryption 加密工具用的什么加密算法 问题状态 最新活动: 2020-02-04 00:28 浏览: 1700 关注: 5 人

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

729. 动态图集 · LayaAir3.4 · 引擎文档 · LAYABOX [ 29%]

...控2.7 清理与销毁三、使用建议动态图集 一、概述 图集(Atlas)是一种将多张小纹理整合为一张大纹理的资源优化技术,能够有效减少 DrawCall、降低纹理切换次数、减少 I/O 请求,是 2D 产品中提升渲染性能与显存利用率的关键手...

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

730. laya.display.Animation_API3.0 [ 25%]

...是定时切换Graphics对象。 使用set source、loadImages(...)、loadAtlas(...)、loadAnimation(...)方法可以创建动画模版。使用play(...)可以播放指定动画。 example 以下示例代码,创建了一个 Text 实例。 package { import laya.display.Animation; import laya.net.Lo...

来源: Laya3.0_api 发布时间: 20231115