大约有 382 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0069 秒)
Laya_社区(213) Laya2.0_api(57) laya_api(53) Laya2.0_文档(21) Laya2.0_示例(14) Laya3.0_文档(13) Laya_示例(9) Laya3.0_api(2)
...pineAni.playbackRate(10); //侦听点击,换动画 this.spineBtn.on(Laya.Event.CLICK, this, this.changeAni); }第二,你通过Laya.timer.scale设置比较大的值,受限制是因为引擎中作了一些优化保护,让动画不至于播放过快。如果你想自己控制速度,我们也...
来源: Laya_社区 发布时间: 20241217
...All Classes | Index | Frames No Frames ButtonProperties | Methods | Events Packagelaya.uiClasspublic class ButtonInheritanceButton UIComponent Sprite Node EventDispatcher ObjectImplements ISelectSubclasses CheckBox, Radio Button 组件用来表示常用的多态按钮。 Button 组件可显...
来源: Laya2.0_api 发布时间: 20190513
...Script extends RuntimeScriptBase { onAwake(): void { this.closeBtn.on(Laya.Event.CLICK, this, () => { this.close(); }); } } 1.3.3 关联场景 设置好弹窗之后,需要用代码将Dialog与所需要用到该Dialog的场景管关联起来。回到初始场景Scene,在Scene2D的属性设置...
来源: Laya3.0_文档 发布时间: 20251024
...去加载分包和资源 ``` onConfigLoaded(): void { Laya.stage.on(Laya.Event.CLICK, this, this.toPage2) } toPage2(): void { my.redirectTo({ url: "/subpackage1/page2/index", success: function () { console.log("success") }, fail: function (err) { console.log("2222", err) } }) } ``` 注意:在加...
来源: Laya2.0_文档 发布时间: 20210715
...a.stage.width / 2; this.ball.y = Laya.stage.height / 2; Laya.stage.on(Laya.Event.CLICK,this,this.onClick); Laya.timer.frameLoop(1,this,this.onEnterFrame); } private onEnterFrame():void{ if(this.points.length>0){ if(this.i<this.points.length){ this.ball.x = this.points[this.i].x; this.ball.y = ...
来源: Laya_社区 发布时间: 20171108
...ll Classes | Index | Frames No Frames CheckBoxProperties | Methods | Events Packagelaya.uiClasspublic class CheckBoxInheritanceCheckBox Button UIComponent Sprite Node EventDispatcher Object CheckBox 组件显示一个小方框,该方框内可以有选中标记。 CheckBox 组件还可以显...
来源: Laya2.0_api 发布时间: 20190513
...毕,此方法只执行一次 */ onAwake(): void { this.sprite2.on(Laya.Event.MOUSE_DOWN, this, this.test2);//设置监听,sprite1或sprite2均可 console.log(this.sprite1.mouseEnabled);//打印父节点sprite1的MouseEnabled的值:true console.log(this.sprite2.mouseEnabled);//打印子节点sp...
来源: Laya3.0_文档 发布时间: 20251010
...t - 100 * Laya.Browser.pixelRatio); changeActionButton.on(Laya.Event.CLICK, this, function () { if (++curStateIndex % 2 == 1) { debugModel = true; changeActionButton.label = "网格模式"; } ...
来源: Laya_社区 发布时间: 20171127
...ions", inspector: "Buttons", options : { buttons : [ { caption : "点我", event: "my_click" } ] } } ] } ]); this._panel.allowUndo = true; //根据需要设置 //如果不需要undo功能,也可以直接this._data = {}; this._data = IEditor.DataWatcher.watch({}); //inspect可以多次调用,将...
来源: Laya3.0_文档 发布时间: 20251010
...ll Classes | Index | Frames No Frames CheckBoxProperties | Methods | Events Packagelaya.uiClasspublic class CheckBoxInheritanceCheckBox Button Component Sprite Node EventDispatcher Object CheckBox 组件显示一个小方框,该方框内可以有选中标记。 CheckBox 组件还可以显...
来源: laya_api 发布时间: 20170929