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

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

1. 场景调用offAll会报错。 [ 100%]

场景调用offAll会报错。 代码: scene = new Scene(); Laya.stage.addChild(scene); scene.offAll(); Laya.stage.removeChild(scene);  scene = new Scene(); Laya.stage.addChild(scene); scene.offAll(); Laya.stage.removeChild(scene); scene = new Scene(); Laya.stage.addChild(scene); Laya.stage.remo...

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

2. on和off的bug [ 87%]

...a.Event.MOUSE_DOWN, this, onStartDrag); 但发现不行,于是我改成a.offAll(); 就可以了。 需要说明的是onStartDrag是函数内定义的lamda表达式,而且那两句代码不是在同一帧执行的。 首先这算不算个bug? 然后我觉得不管怎么说,既然offAll有效...

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

3. laya.device.Shake_API3.0 [ 86%]

... 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:32 Returns Sh...

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

4. laya.d3.webxr.core.AxiGamepad_API3.0 [ 86%]

...ies 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 轴设备名字 Static...

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

5. laya.media.Sound_API3.0 [ 86%]

... 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:38 释放声音资...

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

6. laya.device.motion.Gyroscope_API3.0 [ 86%]

... Constructors constructor Accessors instance Methods event hasListener off offAll offAllCaller on once Constructors constructor new Gyroscope(singleton: number): Gyroscope Defined in laya/device/motion/Gyroscope.ts:36 实例化一个Gyroscope Parameters singleton: number Returns Gyroscope Accessors ...

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

7. laya.d3.animation.AnimationTransform3D_API3.0 [ 85%]

...ndex 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 实例。 Pa...

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

8. laya.device.motion.Accelerator_API3.0 [ 85%]

... Constructors constructor Accessors instance Methods event hasListener off offAll offAllCaller on once getTransformedAcceleration Constructors constructor new Accelerator(): Accelerator Defined in laya/device/motion/Accelerator.ts:44 Returns Accelerator Accessors Static instance get instance(): Acce...

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

9. laya.events.EventDispatcher_API3.0 [ 84%]

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

10. laya.media.SoundChannel_API3.0 [ 83%]

...tTime url Accessors duration position volume Methods event hasListener off offAll offAllCaller on once pause play resume stop Properties completeHandler completeHandler: Handler Defined in laya/media/SoundChannel.ts:28 播放完成处理器。 isStopped isStopped: boolean = false Defined in laya/med...

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