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

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

1. JS版派发自定义事件出错。 [ 100%]

...,出错 ---------------------------------- __proto.event 方法中 if (listener) { (data != null) ? listener.runWith(data) : listener.run(); } 出错,原因listener.method不是一个方法,看了下listener.caller就是注册的方法,修改为如下就可以正常抛出事件,请查明...

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

2. laya.d3.webxr.core.WebXRInput_API3.0 [ 97%]

...S_LEFT HANDNESS_RIGHT Methods addAxisEvent addButtonEvent destroy event hasListener off offAll offAllCaller offAxisEvent offButtonEvent on once Constructors constructor new WebXRInput(handness: string): WebXRInput Defined in laya/d3/WebXR/core/WebXRInput.ts:60 Parameters handness: string Returns Web...

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

3. laya.events.EventDispatcher_API3.0 [ 96%]

...Manager Accelerator Shake Gyroscope Socket TimeLine Index Methods event hasListener off offAll offAllCaller on once Methods event event(type: string, data?: any): boolean Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选...

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

4. laya.device.motion.Gyroscope_API3.0 [ 96%]

...scope.instance获取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):void absolute: 指示设备是否可以提供绝对方位数据(指向地球坐标系),或者设备决定...

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

5. laya.device.motion.Accelerator_API3.0 [ 95%]

...tor.instance获取唯一的Accelerator引用,请勿调用构造函数。 listen()的回调处理器接受四个参数: acceleration: 表示用户给予设备的加速度。 accelerationIncludingGravity: 设备受到的总加速度(包含重力)。 rotationRate: 设备的自转速率。 inter...

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

6. laya.device.Shake_API3.0 [ 95%]

...r 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 Returns Shake Accessors Static instance get instance(): Shake Defined in laya/device/Shake.ts:...

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

7. EventDispatcher.off的逻辑 [ 95%]

EventDispatcher.off的逻辑 想请问一下,图中listeners[i]=null的问题; 当listener1,listener2同时监听事件A,  listener1永远不移除监听, listener2不断的添加移除,这种情况会导致listeners的长度无限增长,只是里面的元素为null值。增加了遍...

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

8. laya.d3.webxr.core.AxiGamepad_API3.0 [ 95%]

...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/WebXRGamepad.ts:16 轴数量 handness handness: string Defined in laya/d3/WebXR/core/WebXRGamepad.ts:12 轴设备...

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

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

...hy 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 number Methods dispose dispose(): void Defined in laya/media/Sound.ts:3...

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

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

...Transform3D Index Constructors constructor Methods event getWorldMatrix hasListener off offAll offAllCaller on once setParent Constructors constructor new AnimationTransform3D(owner: AnimationNode): AnimationTransform3D Defined in laya/d3/animation/AnimationTransform3D.ts:30 创建一个 Transform3D...

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