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

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

1. 2D物理-碰撞过滤器 [ 100%]

...s.createHouse(); for (let i = 1; i mouseJoint).onMouseDown); Laya.stage.on(Event.MOUSE_UP, this, this.destoryJoint); Laya.stage.on(Event.MOUSE_OUT, this, this.destoryJoint); // 方案二,自己实现,可以实现更大程度的控制 // Laya.stage.on(Event.MOUSE_MOVE, this, this.mouseMove); // L...

来源: Laya2.0_示例 发布时间: 20241119

2. Laya.EventDispatcher off 删除侦听器 [ 97%]

Laya.EventDispatcher off 删除侦听器       var eventDis = new Laya.EventDispatcher()     eventDis.on('TEST_EVENT_DIS', this, someEventHandler, null)     eventDis.off('TEST_EVENT_DIS', this, another_eventHandler, false) off 怎样才能 从 EventDispatcher 对象中删除侦听器? ...

来源: Laya_社区 发布时间: 20180914

3. laya.d3.webxr.core.AxiGamepad_API3.0 [ 94%]

...Gamepad" AxiGamepad Class AxiGamepad 类用来描述gamepad Axis Hierarchy EventDispatcher AxiGamepad Index Properties axisLength handness EVENT_OUTPUT Methods destroy event hasListener off offAll offAllCaller on once Properties axisLength axisLength: number Defined in laya/d3/WebXR/core/WebXRGamepa...

来源: Laya3.0_api 发布时间: 20231115

4. laya.device.Shake_API3.0 [ 94%]

...e Class Shake Shake只能在支持此操作的设备上有效。 Hierarchy EventDispatcher Shake Index Constructors constructor Accessors instance Methods event hasListener off offAll offAllCaller on once start stop Constructors constructor new Shake(): Shake Defined in laya/device/Shake.ts:23 Retur...

来源: Laya3.0_api 发布时间: 20231115

5. 鼠标交互-滑动 [ 94%]

...效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Browser = Laya.Browser; var Tween = Laya.Tween; var WebGL = Laya.WebGL; //swipe滚动范围 var TrackLength = 200; //触发swipe的拖动距离 var TOGGLE_DIST = TrackLength / 2; var buttonPosition, beg...

来源: Laya_示例 发布时间: 20241119

6. 鼠标交互-滑动 [ 94%]

...Sprite(); this.drawTrack(); } createSprite() { const Sprite = Laya.Sprite, Event = Laya.Event; const w = 50; const h = 30; this.button = new Sprite(); this.button.graphics.drawRect(0, 0, w, h, "#FF7F50"); this.button.pivot(w / 2, h / 2); //设置宽高(要接收鼠标事件必须设置宽高,否...

来源: Laya2.0_示例 发布时间: 20241119

7. laya.device.motion.Gyroscope_API3.0 [ 94%]

...。关于坐标系参见https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Orientation_and_motion_data_explained。 info: RotationInfo类型参数,保存设备的旋转值。 浏览器兼容性参见:http://caniuse.com/#search=deviceorientation Hierarchy EventDispatcher Gyroscope Index Co...

来源: Laya3.0_api 发布时间: 20231115

8. laya.d3.webxr.core.ButtonGamepad_API3.0 [ 94%]

... ButtonGamepad Class ButtonGamepad 类用来描述gamepad Button Hierarchy EventDispatcher ButtonGamepad Index Constructors constructor Properties handness index EVENT_PRESS_ENTER EVENT_PRESS_OUT EVENT_PRESS_STAY EVENT_PRESS_VALUE EVENT_TOUCH_ENTER EVENT_TOUCH_OUT EVENT_TOUCH_STAY Methods destroy ev...

来源: Laya3.0_api 发布时间: 20231115

9. laya.media.Sound_API3.0 [ 93%]

...有兼容问题(比如不能混音,播放有延迟等)。 Hierarchy EventDispatcher Sound Index Accessors duration Methods dispose event hasListener load off offAll offAllCaller on once play Accessors duration get duration(): number Defined in laya/media/Sound.ts:31 获取总时间。 Returns ...

来源: Laya3.0_api 发布时间: 20231115

10. laya.d3.animation.AnimationTransform3D_API3.0 [ 93%]

...ationTransform3D AnimationTransform3D 类用于实现3D变换。 Hierarchy EventDispatcher AnimationTransform3D Index Constructors constructor Methods event getWorldMatrix hasListener off offAll offAllCaller on once setParent Constructors constructor new AnimationTransform3D(owner: AnimationNode): A...

来源: Laya3.0_api 发布时间: 20231102