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

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

11. laya.media.Sound_API3.0 [ 90%]

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

12. laya.device.motion.Gyroscope_API3.0 [ 90%]

...ndex 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 Access...

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

13. laya.d3.animation.AnimationTransform3D_API3.0 [ 89%]

...3D 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

14. laya.device.motion.Accelerator_API3.0 [ 89%]

...ndex 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(): ...

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

15. 鼠标交互-滑动 [ 88%]

...ginPosition); } /**抬起事件处理*/ function onMouseUp(e) { Laya.stage.off(Event.MOUSE_MOVE, this, onMouseMove); Laya.stage.off(Event.MOUSE_UP, this, onMouseUp); Laya.stage.off(Event.MOUSE_OUT, this, onMouseUp); // 滑动到目的地 var dist = Laya.stage.mouseX - buttonPosition; var targetX = b...

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

16. 鼠标交互-滑动 [ 88%]

...*/ onMouseUp(e) { const Event = Laya.Event, Tween = Laya.Tween; Laya.stage.off(Event.MOUSE_MOVE, this, this.onMouseMove); Laya.stage.off(Event.MOUSE_UP, this, this.onMouseUp); Laya.stage.off(Event.MOUSE_OUT, this, this.onMouseUp); // 滑动到目的地 let dist = Laya.stage.mouseX - buttonPosition; ...

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

17. 在微信分享成功的回调函数里,Laya播放音效失败。 [ 88%]

...r.clear(this, this.onLoop); //移除舞台的鼠标移动事件 Laya.stage.off(Laya.Event.MOUSE_MOVE); }  //恢复 GameEx.prototype.resume = function () { //在循环中创建敌人 Laya.timer.frameLoop(1,this,this.onLoop); console.log("恢复播放音乐") Laya.SoundManager.stopMusic(); Laya.Sound...

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

18. laya.media.SoundChannel_API3.0 [ 88%]

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

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

19. laya.net.HttpRequest_API3.0 [ 88%]

...atcher HttpRequest Index Accessors data http url Methods event hasListener off offAll offAllCaller on once reset send Accessors data get data(): any Defined in laya/net/HttpRequest.ts:192 返回的数据。 Returns any http get http(): any Defined in laya/net/HttpRequest.ts:199 本对象所封装的...

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

20. 我想把flex项目转为laya ts项目,转换过程 mx.containers.Canvas报错 [ 87%]

...<mx:Canvas width="144" height="590" x="0" y="0" horizontalScrollPolicy="off" verticalScrollPolicy="off">                     <!-- left border -->                     <mx:Canvas x="0" y="0" width="4" height="590" backgroundColor="#c9c9c9" borderColor="#000...

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