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

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

1. UI运行时 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...接使用this.即可使用。例如下面的代码: onAwake(): void { // Button添加鼠标事件,让Image不显示 this.Button.on( Laya.Event.MOUSE_DOWN, this, ()=>{ this.Image.visible = false; }); } 运行此场景来看看效果,如动图2-7所示。 (动图2-7) UI组件脚本就已...

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

2. 场景管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 91%]

...lass() export class NewScript extends Laya.Script { @property({ type: Laya.Button }) public uiBtn: Laya.Button; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.uiBtn.on(Laya.Event.CLICK, th...

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

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

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

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

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