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

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

301. 精灵 · LayaAir3.4 · 引擎文档 · LAYABOX [ 28%]

...示例: let sprite = new Laya.Sprite(); // 加载并显示一个图片,居中显示 sprite.loadImage("atlas/comp/image.png", null); sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); // 添加到舞台 Laya.stage.addChild(sprite); 3.2.2 set texture /** * 设置一个Texture...

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

302. 运行配置 · LayaAir3.4 · 引擎文档 · LAYABOX [ 28%]

...齐方式,支持以下取值: top(顶部对齐)、middle(垂直居中)、bottom(底部对齐),分别表示舞台位于画布的顶部、中部或底部。 水平对齐模式(alignH)用于指定舞台在画布水平方向上的对齐方式,支持以下取值: left(左对...

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

303. laya.display.Input [ 27%]

...平显示方式。 取值: "left": 居左对齐显示。 "center": 居中对齐显示。 "right": 居右对齐显示。 Text alpha : Number透明度,值为0-1,默认值为1,表示透明。更改alpha值会影响drawcall。Sprite autoSize : Boolean = false 指定是否自动计算...

来源: Laya2.0_api 发布时间: 20190513

304. laya.display.Text_API3.0 [ 27%]

...平显示方式。 取值: "left": 居左对齐显示。 "center": 居中对齐显示。 "right": 居右对齐显示。 Returns string Defined in laya/display/Text.ts:482 表示文本的水平显示方式。 取值: "left": 居左对齐显示。 "center": 居中对齐显示。 "right"...

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

305. laya.display.Input [ 27%]

...平显示方式。 取值: "left": 居左对齐显示。 "center": 居中对齐显示。 "right": 居右对齐显示。 Text alpha : Number透明度,值为0-1,默认值为1,表示透明。更改alpha值会影响drawcall。Sprite  asPassword : Boolean 本API已弃用。使用type=...

来源: laya_api 发布时间: 20170929

306. laya.display.Input_API3.0 [ 26%]

...平显示方式。 取值: "left": 居左对齐显示。 "center": 居中对齐显示。 "right": 居右对齐显示。 Returns string Inherited from Text.align Defined in laya/display/Text.ts:482 表示文本的水平显示方式。 取值: "left": 居左对齐显示。 "center": 居...

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

307. WebSocket通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 21%]

...lob([uint8Array], { type: 'image/png' })); img.centerX = 0; // 设置图片居中显示 // 将图片添加到舞台显示 Laya.stage.addChild(img); } else { console.log("收到数据:", message); } } private onConnectError(): void { console.log("Connection Error"); } } 运行效果如图3-1所示。...

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

308. laya.ui.CheckBox [ 21%]

...文本内容。 Button labelAlign : String标签对齐模式,默认为居中对齐。Button labelBold : Boolean 表示按钮文本标签是否为粗体字。 Button labelColors : String 表示按钮各个状态下的文本颜色。 格式: "upColor,overColor,downColor,disableColor"。 Button l...

来源: laya_api 发布时间: 20170929

309. laya.ui.Radio [ 20%]

...文本内容。 Button labelAlign : String标签对齐模式,默认为居中对齐。Button labelBold : Boolean 表示按钮文本标签是否为粗体字。 Button labelColors : String 表示按钮各个状态下的文本颜色。 格式: "upColor,overColor,downColor,disableColor"。 Button l...

来源: laya_api 发布时间: 20170929

310. laya.ui.CheckBox [ 20%]

...文本内容。 Button labelAlign : String标签对齐模式,默认为居中对齐。Button labelBold : Boolean 表示按钮文本标签是否为粗体字。 Button labelColors : String 表示按钮各个状态下的文本颜色。 格式: "upColor,overColor,downColor,disableColor"。 Button l...

来源: Laya2.0_api 发布时间: 20190513