大约有 585 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0064 秒)
Laya_社区(389) Laya2.0_api(59) laya_api(55) Laya2.0_文档(29) Laya3.0_文档(21) Laya2.0_示例(16) Laya_示例(13) Laya3.0_api(3)
...iew extends ui.LoginUI { constructor() { super(); this.login.on(Laya.Event.CLICK, this, this.Loginyim); this.joinroom.on(Laya.Event.CLICK, this, this.JoinRoom); this.RecordAudio.on(Laya.Event.MOUSE_DOWN, this, this.StartRecordAudio); this.RecordAudio.on(Laya.Event.MOUSE_UP, this, this.StopRecordAudi...
来源: Laya_社区 发布时间: 20170722
...rt class NewScript extends Laya.Script { constructor() { super(); } onMouseClick(evt: Laya.Event): void { // 尝试获取当前位置 Laya.Geolocation.getCurrentPosition( Laya.Handler.create(this, this.onSuccess), Laya.Handler.create(this, this.onError) ); console.log("click"); } // 成功获取位...
来源: Laya3.0_文档 发布时间: 20251010
...的垂直方向中心线的距离(以像素为单位)。 Component clickHandler : Handler 对象的点击事件处理器函数(无默认参数)。 Button comXml : Object XML 数据。 Component customRenderEnable : Boolean[write-only] 设置是否开启自定义渲染,只有开启自...
来源: laya_api 发布时间: 20170929
...ild(sprite);//将此 sprite 对象添加到显示列表。 sprite.on(Event.CLICK, this, onClickSprite);//给 sprite 对象添加点击事件侦听。 shape = new Sprite();//创建一个 Sprite 类的实例对象 sprite 。 shape.graphics.drawRect(0, 0, 100, 100, "#ccff00", "#ff0000", 2);//绘制一...
来源: Laya3.0_api 发布时间: 20231115
...垂直方向中心线的距离(以像素为单位)。 UIComponent clickHandler : Handler 对象的点击事件处理器函数(无默认参数)。 Button customRenderEnable : Boolean[write-only] 设置是否开启自定义渲染,只有开启自定义渲染,才能使用customRender函...
来源: Laya2.0_api 发布时间: 20190513
...{ this.bar.value = 1; this.value.visible = false; Laya.stage.on(Laya.Event.CLICK, this, this.onHurt); } onHurt(): void { this.bar.value = this.bar.value - 0.9; this.value.y = 35; this.value.visible = true; Main.instance.animator.play("stun"); Laya.Tween.create(this.value).to("y", -30).duration(1000)...
来源: Laya3.0_文档 发布时间: 20251010
...oostImpl: set config for com.layabox.test BOOST_FLAG=false REPORT_DURATION_CLICK=1000 REPORT_TIMES_CLICK=3 REPORT_DURATION_SLIDE=5000 REPORT_TIMES_SLIDE=16 D/OpenGLRenderer: HWUI Binary is enabled disableOutlineDraw is true D/a: Mainactivity---------------------------------oncreate ...
来源: Laya_社区 发布时间: 20190723
...会有冲突。 如果勾选 Mouse Through,Scene2D下脚本事件 onMouseClick 等将不会响应,会传递到Scene3D中 如果不勾选 Mouse Through,Scene2D下脚本事件 onMouseClick 等将会响应 二、代码中使用 2.1 场景类 /** * 场景类,负责场景创建,加载,销毁...
来源: Laya3.0_文档 发布时间: 20251010
...器的垂直方向中心线的距离(以像素为单位)。 Component clickHandler : Handler 对象的点击事件处理器函数(无默认参数)。 Button comXml : Object XML 数据。 Component customRenderEnable : Boolean[write-only] 设置是否开启自定义渲染,只有开启自...
来源: laya_api 发布时间: 20170929
... console.log(e) clipboard.destroy(); }) //确认按钮 this.confirmBtn.onclick = function () { _this.CloseDivAndInfoMesg(this); } // 创建弹出层 遮罩层 等 if (!document.getElementById("mask") && 1) { //mask div this.newMask.id = "mask"; this.newMask.style.position = "absolute"; thi...
来源: Laya_社区 发布时间: 20181214