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

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

21. laya.resource.Resource_API3.0 [ 84%]

...mory _setCreateURL _setGPUMemory destroy event hasListener isCreateFromURL off offAll offAllCaller on once destroyUnusedResources Properties _id _id: number = 0 Defined in laya/resource/Resource.ts:97 destroyedImmediately destroyedImmediately: boolean Defined in laya/resource/Resource.ts:112 是否...

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

22. laya.physics.Physics_API3.0 [ 84%]

...oot I Methods event getBodyCount getContactCount getJointCount hasListener off offAll offAllCaller on once start stop updatePhysicsByWorldRoot enable Constructors constructor new Physics(): Physics Defined in laya/physics/Physics.ts:39 Returns Physics Properties box2d box2d: any = (<any>window...

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

23. 文本-滚动文本 [ 84%]

...ext); } /* 停止滚动文本 */ function finishScrollText(e) { Laya.stage.off(Event.MOUSE_MOVE, this, scrollText); Laya.stage.off(Event.MOUSE_UP, this, finishScrollText); } /* 鼠标滚动文本 */ function scrollText(e) { var nowX = txt.mouseX; var nowY = txt.mouseY; txt.scrollX += prevX - nowX; t...

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

24. 取消监听鼠标移动事件,取消不了 [ 84%]

取消监听鼠标移动事件,取消不了 Laya.stage.off(Laya.Event.MOUSE_MOVE,this,null); 第三个参数是函数,不能为null吗?是不是和on绑定时的同一个函数,如果on里面用匿名函数,off第三个参数怎么写? 2018-06-23 添加评论 免费帖 --> 分享 微博...

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

25. 计时器-延迟执行 [ 84%]

...utton; } function onDecreaseAlpha1(e) { //移除鼠标单击事件 button1.off(Event.CLICK, this, onDecreaseAlpha1); //定时执行一次(间隔时间) Laya.timer.once(3000, this, onComplete1); } function onDecreaseAlpha2(e) { //移除鼠标单击事件 button2.off(Event.CLICK, this, onDecreaseAlpha...

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

26. 文本-滚动文本 [ 83%]

...滚动文本 */ finishScrollText(e) { const Event = Laya.Event; Laya.stage.off(Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.off(Event.MOUSE_UP, this, this.finishScrollText); } /* 鼠标滚动文本 */ scrollText(e) { const Event = Laya.Event; let nowX = this.txt.mouseX; let nowY = this.txt.m...

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

27. 计时器-延迟执行 [ 83%]

...ha1(e) { const Event = Laya.Event; //移除鼠标单击事件 this.button1.off(Event.CLICK, this, this.onDecreaseAlpha1); //定时执行一次(间隔时间) Laya.timer.once(3000, this, this.onComplete1); } onDecreaseAlpha2(e) { const Event = Laya.Event; //移除鼠标单击事件 this.button2.off(Ev...

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

28. laya.d3.core.render.ScreenTriangle_API3.0 [ 83%]

...mory _setCreateURL _setGPUMemory destroy event hasListener isCreateFromURL off offAll offAllCaller on once destroyUnusedResources Constructors constructor new ScreenTriangle(): ScreenTriangle Overrides Resource.__constructor Defined in laya/d3/core/render/ScreenTriangle.ts:43 创建一个 ScreenTria...

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

29. laya.ani.AnimationPlayer_API3.0 [ 83%]

...sed playDuration playEnd playStart state templet Methods event hasListener off offAll offAllCaller on once play playByFrame stop Constructors constructor new AnimationPlayer(): AnimationPlayer Defined in laya/ani/AnimationPlayer.ts:268 创建一个 AnimationPlayer 实例。 Returns AnimationPlayer P...

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

30. laya.resource.TextResource_API3.0 [ 83%]

...mory _setCreateURL _setGPUMemory destroy event hasListener isCreateFromURL off offAll offAllCaller on once destroyUnusedResources Constructors constructor new TextResource(data: any, format: TextResourceFormat): TextResource Overrides Resource.__constructor Defined in laya/resource/TextResource.ts:2...

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