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

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

121. laya.ui.Radio [ 38%]

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

来源: laya_api 发布时间: 20170929

122. laya.ui.Radio [ 38%]

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

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

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

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

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

124. 精灵 · LayaAir3.4 · 引擎文档 · LAYABOX [ 36%]

...示例: 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

125. 【简单跑酷--JS版】---Lv.6 终篇 [ 35%]

...地板上面出现最多的是星星 2、所有物品在地板上面 需要居中显示 3、物品需要有碰撞检测 上一节我们有讲到 Floor 这个类的作用 它主要就是一个块地板  而游戏刚开始的时候 我们会创建一个普通地板 宽度是素材的正常宽度 那...

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

126. laya.ui.VBox [ 33%]

...dePublic Constants ConstantDefined By  CENTER : String = center[static] 居中对齐。 VBox  LEFT : String = left[static] 左对齐。 VBox  NONE : String = none[static] 无对齐。 VBox  RIGHT : String = right[static] 右对齐。 VBoxProperty Detailwidthpropertywidth:Number[override] Im...

来源: laya_api 发布时间: 20170929

127. laya.ui.HBox [ 33%]

...bottom[static] 居底部对齐。 HBox  MIDDLE : String = middle[static] 居中对齐。 HBox  NONE : String = none[static] 无对齐。 HBox  TOP : String = top[static] 居顶部对齐。 HBoxProperty Detailheightpropertyheight:Number[override] Implementation     public function get heigh...

来源: laya_api 发布时间: 20170929

128. laya.ui.VBox [ 33%]

...dePublic Constants ConstantDefined By  CENTER : String = center[static] 居中对齐。 VBox  LEFT : String = left[static] 左对齐。 VBox  NONE : String = none[static] 无对齐。 VBox  RIGHT : String = right[static] 右对齐。 VBoxProperty Detailwidthpropertywidth:Number[override] Im...

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

129. laya.ui.HBox [ 33%]

...bottom[static] 居底部对齐。 HBox  MIDDLE : String = middle[static] 居中对齐。 HBox  NONE : String = none[static] 无对齐。 HBox  TOP : String = top[static] 居顶部对齐。 HBoxProperty Detailheightpropertyheight:Number[override] Implementation     public function get heigh...

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

130. WebSocket通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 32%]

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