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

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

181. [LayaAir3]VideoTexture,VideoNode视频和Image图片内存释放问题 [ 50%]

...(this.element.childElementCount) this.element.firstChild.remove(); } ILaya.timer.clear(this, this.render); } 2、关于Image所说的内存泄漏的问题,你们上面的描述更多的可以认为这个属于项目本身的处理问题。针对一个Image实例对象,频繁的切换skin,看...

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

182. 这个GetType=null的问题有大神解答下吗 [ 50%]

... (file:///D:/Documents/myLaya/test/bin/libs/laya.physics.js:1792:14)   at TimerHandler.__proto.run (file:///D:/Documents/myLaya/test/bin/libs/laya.core.js:7533:45)   at Timer.__proto._update (file:///D:/Documents/myLaya/test/bin/libs/laya.core.js:7271:16)   at Stage.__proto._updateTimers (file://...

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

183. Laya 绑定显示内容到骨骼动画 [ 49%]

...f(index<0){ this.__bindList.push(source); } this.addChild(source); this.timer.frameLoop(1,this,this.__updateBinds); }  unbind(source:BindSource):void{ let index:number=this.__bindList.indexOf(source); if(index<0){ throw new Error("找不到要删除的绑定内容"); } this.removeChild(sou...

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

184. (最新版ide和库已经测试)iOS环境浏览器使用mask黑屏 [ 49%]

...phics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = this._sp; }) }之后编译项目 2. 使用iphone手机的safari扫码功能运行项目 3秒中之后必现黑屏 手机型号: iphone 6s 系统 13.1.3 使用qq浏览器扫...

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

185. laya.display.Animation [ 49%]

...被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放,位移效果。 矩阵更多信息请参考 Matrix Sprite viewport : ...

来源: laya_api 发布时间: 20170929

186. socket大型项目回调 [ 49%]

...package.encode(Package.TYPE_HEARTBEAT); if(this.heartbeatTimeoutId) { Laya.timer.clear(this,this.heartbeatTimeoutId); this.heartbeatTimeoutId = null; } if(this.heartbeatId) { // already in a heartbeat interval return; } var self = this; self.heartbeatId = Laya.timer.once(self.heartbeatInterval,self,...

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

187. 用javascript如何实现游戏登录游戏前的资源加载进度,如何将图片,音乐等素材加载到界面通过加载条显示加载进度 [ 49%]

...Menu.value = 0.0; Laya.stage.addChild(this.progressUI.displayObject); Laya.timer.loop(100, this, this.updataPosition); this.loadMainDatas(); } public updataPosition() { this.progressUI.setPosition(Laya.stage.width / 2, Laya.stage.height / 2); } public loadMainDatas() { Laya.loader.load([ { url: "res...

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

188. laya.display.EffectAnimation_API3.0 [ 49%]

...caleX scaleY scene scrollRect skewX skewY stage staticCache target texture timer transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addLabel bubbleEvent callLater clear clearTimer contains customRender ...

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

189. removeSelf()这个方法调用后是不是会移除对象上添加的一切东西? [ 49%]

...</p> * <p>destroy时会移除自身的事情监听,自身的timer监听,移除子对象及从父节点移除自己。</p> * @param destroyChild (可选)是否同时销毁子节点,若值为true,则销毁子节点,否则不销毁子节点。   removeself 只是把自己...

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

190. 为什么会出现报错 ani not found:ufo1_down [ 48%]

...创建敌人 // createEnemy(10); // 定时器自动循环创建敌人 Laya.timer.frameLoop(1,this,onLoop); } function onLoop() { // 遍历所有飞机,更改飞机状态 for(var i = Laya.stage.numChildren - 1; i > 0; i--) { // 接收舞台子对象 var role = Laya.stage.getChildAt(i); // 判断...

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