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

大约有 2,538 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0075 秒)

201. WebSocket发送与接收数据(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 89%]

...实例化socket之后四个事件是我们必须监听的: ```typescript Event.OPEN :连接正常打开抛出的事件 Event.MESSAGE :接收到消息抛出的事件 Event.CLOSE :socket关闭抛出的事件 Event.ERROR :连接出错抛出的事件 ``` 上面这四个事件是必须的,这也是...

来源: Laya2.0_文档 发布时间: 20210714

202. laya.utils.TimeLine [ 89%]

...ll Classes | Index | Frames No Frames TimeLineProperties | Methods | Events Packagelaya.utilsClasspublic class TimeLineInheritanceTimeLine EventDispatcher Object TimeLine 是一个用来创建时间轴动画的类。 Public Properties PropertyDefined By  scale : Number = 1 缩放动画播...

来源: Laya2.0_api 发布时间: 20190513

203. layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执行。 [ 89%]

layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执行。 Laya.stage.on(Laya.Event.FRAME,this.onEnterFrame); onEnterFrame() { t++; console.log("t="+t); } 希望每帧 t+1.然后显示 2018-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

204. laya.display.Node [ 89%]

...| All Classes | Index | Frames No Frames NodeProperties | Methods | Events Packagelaya.displayClasspublic class NodeInheritanceNode EventDispatcher ObjectSubclasses ComponentNode, Sprite Node 类是可放在显示列表中的所有对象的基类。该显示列表管理 Laya 运行时中显...

来源: laya_api 发布时间: 20170929

205. Event.UNDISPLAY 是在什么时候触发的? [ 89%]

Event.UNDISPLAY 是在什么时候触发的? 请问这个事件怎么用 2017-07-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cry_11858 赞同来自: 页面关闭消失的时候 2017-07-09 0 0 分享 微...

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

206. laya.resource.Resource_API3.0 [ 89%]

...ce/Resource" Resource Class Resource Resource 资源存取类。 Hierarchy EventDispatcher Resource BaseTexture BaseShader TextTexture HTMLCanvas BitmapFont Prefab Material Mesh Texture AtlasResource AnimationClip AnimatorController AnimationClip2D AnimatorController2D TextResource AnimationTemplet ...

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

207. laya.physics.Physics_API3.0 [ 89%]

...hysics" Physics Class Physics 2D物理引擎,使用Box2d驱动 Hierarchy EventDispatcher Physics Index Constructors constructor Properties box2d positionIterations velocityIterations world PIXEL_RATIO Accessors allowSleeping gravity worldRoot I Methods event getBodyCount getContactCount getJointCo...

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

208. Laya的on(Laya.Event.Click)无法打开新窗口 [ 89%]

Laya的on(Laya.Event.Click)无法打开新窗口 一个控件使用on(Laya.Event.Click)监听时,无法在监听函数中使用window.open,会被拦截,有没有什么比较好的办法解决呢? 2017-06-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

209. Dispather.event参数传的是数组,为什么收到的参数却是个int类型? [ 89%]

Dispather.event参数传的是数组,为什么收到的参数却是个int类型? AppDispather.instance.event("test", [1,2]); 我自己有个单例事件派发,参数是 [1,2],但我接收的函数参数却只是一个value=1的int值,这是引擎bug吗? 2016-12-10 添加评论 免费帖...

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

210. laya.d3.animation.AnimationClip_API3.0 [ 89%]

...earReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory addEvent destroy duration event hasListener isCreateFromURL off offAll offAllCaller on once destroyUnusedResources load Constructors constructor new AnimationClip(): AnimationClip Overrides Resource.__constructor Defined in laya...

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