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

大约有 5 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0023 秒)

1. 事件管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...tn"); Laya.Scene.open("scenes/UiMain.ls"); }); 2.2.4 删除指定的侦听 off /** * 从 EventDispatcher 对象中删除侦听器。 * @param type 事件的类型。 * @param caller 事件侦听函数的执行域。 * @param listener 事件侦听函数。 * @return 此 EventDispatcher 对象。 */ o...

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

2. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...ishScrollText); } /* 停止滚动文本 */ finishScrollText() { Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.off(Laya.Event.MOUSE_UP, this, this.finishScrollText); } /* 鼠标滚动文本 */ scrollText() { let nowX = this.txt.mouseX; let nowY = this.txt.mouseY; this.txt.s...

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

3. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

...eyDown(69) && this.moveVertical(-this.speed * elapsedTime);//E var offsetX: number = Laya.stage.mouseX - this.lastMouseX; var offsetY: number = Laya.stage.mouseY - this.lastMouseY; var yprElem: Laya.Vector3 = this.yawPitchRoll; yprElem.x -= offsetX * this.rotaionSpeed * elapsedTime; yprElem....

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

4. TiledMap地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...this.MapY = this.MapY - (Laya.stage.mouseY - this.mLastMouseY); Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.mouseMove); } private mouseDown():void { this.mLastMouseX = Laya.stage.mouseX; this.mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); } /** * ...

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

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

...ED(透明度混合)。 材质剔除模式 Cull 有三种可选模式:Off(不剔除)、Front(剔除正面,只显示背面)、Back(剔除背面,只显示正面)。 三、3种模式 3.1 非广告牌 在非广告牌(Not Billboard)模式下,UI永远朝向Z轴方向,在场景...

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