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

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

461. LAYABOX游戏实时语音之APP版本 [ 38%]

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

462. 获取位置信息 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

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

463. laya.ui.Button [ 36%]

...的垂直方向中心线的距离(以像素为单位)。 Component  clickHandler : Handler 对象的点击事件处理器函数(无默认参数)。 Button comXml : Object XML 数据。 Component customRenderEnable : Boolean[write-only] 设置是否开启自定义渲染,只有开启自...

来源: laya_api 发布时间: 20170929

464. laya.display.Sprite_API3.0 [ 36%]

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

465. laya.ui.Button [ 36%]

...垂直方向中心线的距离(以像素为单位)。 UIComponent  clickHandler : Handler 对象的点击事件处理器函数(无默认参数)。 Button customRenderEnable : Boolean[write-only] 设置是否开启自定义渲染,只有开启自定义渲染,才能使用customRender函...

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

466. 使用3D UI · LayaAir3.3 · 引擎文档 · LAYABOX [ 35%]

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

467. 打包安卓Android studio黑屏 [ 33%]

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

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

...会有冲突。 如果勾选 Mouse Through,Scene2D下脚本事件 onMouseClick 等将不会响应,会传递到Scene3D中 如果不勾选 Mouse Through,Scene2D下脚本事件 onMouseClick 等将会响应 二、代码中使用 2.1 场景类 /** * 场景类,负责场景创建,加载,销毁...

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

469. laya.ui.CheckBox [ 32%]

...器的垂直方向中心线的距离(以像素为单位)。 Component clickHandler : Handler 对象的点击事件处理器函数(无默认参数)。 Button comXml : Object XML 数据。 Component customRenderEnable : Boolean[write-only] 设置是否开启自定义渲染,只有开启自...

来源: laya_api 发布时间: 20170929

470. Layabox web 复制一段文字到剪贴板 [ 32%]

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