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

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

181. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...: 语法结构 示例代码 语句说明 [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]text[/i] [i]这些字是斜...

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

182. 取色器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...码创建ColorPicker取色器组件(ColorPicker) ColorPicker继承自UIComponent,ColorPicker组件将显示包含多个颜色样本的列表,用户可以从中选择颜色。ColorPicker的详细用法可以参考ColorPicker API。 一、通过LayaAir IDE创建ColorPicker 1.1 创建ColorPicke...

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

183. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 52%]

...档是错的,几年了至今无解答 let aniEffConfPath = './res/atlas/comp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文...

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

184. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 52%]

...(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_close.png'); let box:laya.physics.BoxCollider = this._boll1.addComponent(laya.physics.BoxCollider); box.height = 60; box.width = 28; //添加刚体 this._boll1.addComponent(Laya.RigidBody); //创建挡板 this.create...

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

185. 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 [ 52%]

...星 loader支持加载Arr序列加载 var altsArr:Array=[ {url:"res/atlas/comp.atlas", type:Loader.ATLAS}, {url:"bitmapFont/timeFont.fnt", type:Loader.FONT}, {url:"bg/hallroom-bg.png", type:Loader.IMAGE}, {url:"bg/hallrom.json", type:Loader.JSON}, ]; Laya.loader.load(altsArr, Handler.create(this, on...

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

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

... ```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 = functi...

来源: Laya2.0_文档 发布时间: 20210715

187. 错误' message: 'Module 'laya.d3.core' has no exported member 'particle'.' at: '4252,38' source: '' [ 51%]

...---chitianshishoux--加载错误,xxx/xxx/chitianshishoux.atlas lose skin comp/button.png 错误,全部按照UI案例来的呀 空项目的情况下面ios打包出现链表错误 Laya.MathUtil.getRotation接口说明注释错误 Mask显示错误 自定义组件在ui编辑器上正常使用,但...

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

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

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

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

... ```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 = functi...

来源: Laya2.0_文档 发布时间: 20210714

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

... ```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 = functi...

来源: Laya2.0_文档 发布时间: 20210714