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

大约有 1,215 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0061 秒)

121. laya.resource.AtlasResource_API3.0 [ 85%]

...ference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event hasListener isCreateFromURL off offAll offAllCaller on once destroyUnusedResources Constructors constructor new AtlasResource(dir: string, textures: Array<Texture>, frames: Array<Texture>): AtlasResource Ove...

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

122. laya.d3.component.animator.AnimatorController_API3.0 [ 85%]

...ference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event hasListener isCreateFromURL off offAll offAllCaller on once updateTo destroyUnusedResources Constructors constructor new AnimatorController(data: any): AnimatorController Overrides Resource.__constructor Defined in laya...

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

123. 加载-错误处理和进度 [ 85%]

... Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Event = Laya.Event, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; ...

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

124. laya.resource.Prefab_API3.0 [ 85%]

...ce _setCPUMemory _setCreateURL _setGPUMemory addDep addDeps create destroy event hasListener isCreateFromURL off offAll offAllCaller on once destroyUnusedResources Constructors constructor new Prefab(version?: number): Prefab Overrides Resource.__constructor Defined in laya/resource/HierarchyResourc...

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

125. socket与node服务端连不上?按照官方案例 [ 85%]

...接 this.socket.connectByUrl("ws://45.78.**.**:3000"); this.socket.on(Laya.Event.OPEN, this, openHandler); this.socket.on(Laya.Event.MESSAGE, this, receiveHandler); this.socket.on(Laya.Event.CLOSE, this, closeHandler); this.socket.on(Laya.Event.ERROR, this, errorHandler); function openHandler(event)...

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

126. ui组件 TextInput event的事件为什么都触发不了 [ 84%]

ui组件 TextInput event的事件为什么都触发不了 this.changeInput.on(Laya.Event.FOCUS,this.changeInput,this.onChangeInput); private onChangeInput(params:any){ alert(this.changeInput.text); } 2017-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

127. on和off的bug [ 84%]

on和off的bug 是这样的,我写了类似这样的代码a.on(Laya.Event.MOUSE_DOWN, this, onStartDrag); 之后我想去掉拖动,就写了a.off(Laya.Event.MOUSE_DOWN, this, onStartDrag); 但发现不行,于是我改成a.offAll(); 就可以了。 需要说明的是onStartDrag是函数内定...

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

128. 分享:销毁龙骨动画! [ 84%]

...ton; import laya.ani.bone.Templet; import laya.display.Sprite; import laya.events.Event; import laya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class ASDemo { private var mAniPath:String; private var mFactory:Templet; private var mCurrIndex:int = 0; private var mArmature:...

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

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

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

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

130. 点击拖动图片,当鼠标移出再移回舞台中时如何保持点击状态 [ 84%]

...舞台中时如何保持点击状态 比如这个打砖块的游戏。用Event.MOUSE_DOWN + startDrag来实现拖动底部的拍子,在电脑上玩时我快速左右拖动来档球,就很容易将鼠标移出舞台,当再移进舞台时,发现拍子不和鼠标走了,需要重新点击,...

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