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

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

1. 弹窗视图组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...Laya.Image = new Laya.Image(this.assets[0]); this.dialog.addChild(bg); let button: Laya.Button = new Laya.Button(this.assets[1]); button.name = Laya.Dialog.CLOSE; button.pos(this.DIALOG_WIDTH - this.CLOSE_BTN_WIDTH - this.CLOSE_BTN_PADDING, this.CLOSE_BTN_PADDING); this.dialog.addChild(button); this...

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

2. 复选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 88%]

...heckBox多选框组件(CheckBox) CheckBox是多选框组件,继承自Button。它由两部分组成,选择状态框及内容说明标签。其中选择状态框是图片资源,内容说明标签为文本。CheckBox组件的属性接口介绍请参考CheckBox API。 一、通过LayaAir IDE...

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

3. 项目资源面板 · LayaAir3.3 · 引擎文档 · LAYABOX [ 84%]

...式是通过搜索查找 3.1 文字搜索 通过在搜索框中,输入“button”可以快速检索出Button组件,并可快速拖入2D场景中,如动图3-1所示 (动图3-1) 3.2 类型搜索 通过点击类型搜索按钮,选择文件类型,比如选择“LightingSettings”,可...

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

4. 单选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 82%]

...、通过代码创建Radio组件单选框组件(Radio) Radio继承自Button,它的很多属性也继承自Button,所以前面Button中介绍过的这里就不再过多讲述。Radio的详细用法可以参考Radio API。 一、通过LayaAir IDE创建Radio组件 1.1 创建Radio 使用LayaAir ...

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

5. 按钮组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 77%]

按钮(GButton)按钮(GButton) Author: 谷主 Title 标题。必须先设置好Title Widget。 Selected Title 选中状态时的标题,对单选或多选按钮有意义。 Icon 图标。必须先设置好Icon Widget。 Selected Icon 选中状态时的图标,对单选或多选按钮有...

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

6. 层级面板 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...SoundNode、VideoNode); UI组件(Box、HBox、VBox、Image、Clip、Button、CheckBox、Radio、RadioGroup、ComboBox、Label、TextInput、TextArea、FontClip、ProgressBar、HSilder、VSlider、List、Panel、Tree、Tab、ViewStack、HScrollBar、VScrollBar、ColorPicker、View、Dialog、Op...

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

7. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...Color; /** * 编辑器默认的文字颜色 */ textColor: gui.Color; createButton(autoSize?: boolean): gui.Button; createIconButton(flat?: boolean): gui.Button; createCheckbox(autoSize?: boolean): gui.Button; createIconCheckbox(flat?: boolean): gui.Button; createRadio(): gui.Button; createComboBox()...

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

8. Spine渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...lass() export class NewScript extends Laya.Script { @property({ type: Laya.Button, caption: "切换按钮" }) public btn: Laya.Button; spine: Laya.Spine2DRenderNode; //外部皮肤 weaponSkin: Laya.ExternalSkin = new Laya.ExternalSkin(); //外部皮肤列表项 weaponSkinItem: Laya.ExternalSkinItem ...

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

9. 组件装饰器说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

... ) //拿到 Label 组件 private label: Laya.Label; @property( { type:Laya.Button } ) //拿到 Button 组件 private button: Laya.Button; @property( { type:Laya.Sprite } ) //拿到 Sprite 组件 private sprite: Laya.Sprite; @property( { type:Laya.Animation } ) //拿到 Animation 组件 private anmat...

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

10. 滚动支持 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...打开 触摸滚动效果。 Off 关闭 触摸滚动效果。 Touch Effect Button 如果勾选了Touch Effect,可以选择对哪个鼠标键生效。 Page Mode 页面模式。以视口大小为页面大小,每次滚动的距离是一页。一般在移动平台上使用,PC上较少,拖动滚...

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