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

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

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_文档 发布时间: 20251010

2. 滚动支持 · LayaAir3.3 · 引擎文档 · LAYABOX [ 98%]

...认值是UIConfig2.defaultScrollBounceEffect。 On 打开回弹效果。 Off 关闭回弹效果。 Touch Effect 触摸滚动效果。是否允许用户直接拖拽滚动区域内的内容。一般在移动平台上使用,PC上较少,PC上一般需要拖动滚动条,或使用鼠标滚轮。 Def...

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

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

...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_文档 发布时间: 20251010

4. 使用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_文档 发布时间: 20251010

5. 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_文档 发布时间: 20251010

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

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

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