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

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

461. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 39%]

... Laya.timer.frameLoop(1, this, this.animateFrameRateBased); Laya.stage.on("click", this, this.dispose); dispose() { Laya.timer.clear(this, this.animateFrameRateBased); } ``` 当一个对象的生命周期结束时,记得清除其内部的Timer: ### **三、获取显示对象边界的做法** 在...

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

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

463. 获取位置信息 · LayaAir3.4 · 引擎文档 · 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

464. laya.ui.Button [ 36%]

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

来源: laya_api 发布时间: 20170929

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

466. laya.ui.Button [ 36%]

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

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

467. 使用3D UI · LayaAir3.4 · 引擎文档 · 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

468. 打包安卓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

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

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

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

470. laya.ui.CheckBox [ 32%]

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

来源: laya_api 发布时间: 20170929