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

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

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

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

82. sprite做的按钮点击无反应? [ 48%]

...方法只是多了个位置的设置就好用了,按说sprite和不是和button一样吗 ohkei • 2017-01-20 16:21 btn.mouseEnabled = true,还是不识别鼠标事件啊 ohkei • 2017-07-22 22:45 @Monica: 我如何能让Sprite宽高默认是内容的宽高? Monica • 2017-08-24 11:04 @ohkei...

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

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

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

84. laya.ui.Slider [ 44%]

...方法获取。设置为true,对性能有一定影响。 Sprite  bar : Button[read-only] 表示滑块按钮的引用。 Slider blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以...

来源: laya_api 发布时间: 20170929

85. laya.ui.ScrollBar [ 44%]

...ad-only] 对象的显示宽度(以像素为单位)。 Component  downButton : Button下按钮 ScrollBar  elasticBackTime : Number = 500橡皮筋回弹时间,单位为毫秒。ScrollBar  elasticDistance : Number = 0橡皮筋效果极限距离,0为没有橡皮筋效果。ScrollBar filte...

来源: laya_api 发布时间: 20170929

86. laya.ui.Slider [ 44%]

...方法获取。设置为true,对性能有一定影响。 Sprite  bar : Button[read-only] 表示滑块按钮的引用。 Slider blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以...

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

87. laya.ui.ScrollBar [ 43%]

...[read-only] 对象的显示宽度(以像素为单位)。 Sprite  downButton : Button下按钮 ScrollBar drawCallOptimize : BooleanSprite  elasticBackTime : Number = 500橡皮筋回弹时间,单位为毫秒。ScrollBar  elasticDistance : Number = 0橡皮筋效果极限距离,0为没有...

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

88. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...s,this.onUIAssetsLoaded)); } private onUIAssetsLoaded():void{ var btn:Laya.Button = new Laya.Button("res/a.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对齐。达到位置一致,这里我们默认在0点位置 var file:any = Laya.Browser.document.createElement("inpu...

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

89. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 40%]

...s,this.onUIAssetsLoaded)); } private onUIAssetsLoaded():void{ var btn:Laya.Button = new Laya.Button("res/a.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对齐。达到位置一致,这里我们默认在0点位置 var file:any = Laya.Browser.document.createElement("inpu...

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

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

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