大约有 1,488 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
...求进行修改: ```javascript window.loadingView = new loadingView(); if(window.loadingView) { window.loadingView.loadingAutoClose=true;//true代表引擎控制关闭时机。false为开发者手动控制 window.loadingView.bgColor("#FFFFFF");//设置背景颜色 window.loadingView.setFontColor("...
来源: Laya2.0_文档 发布时间: 20210715
...Update方法 onUpdate() { var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if (this.isTwoTouch){ return; } this._text.text = "触控点为1"; //获取当前的触控点,数量为1 var touch = this._...
来源: Laya2.0_文档 发布时间: 20210715
...Update方法 onUpdate() { var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if (this.isTwoTouch){ return; } this._text.text = "触控点为1"; //获取当前的触控点,数量为1 var touch = this._...
来源: Laya2.0_文档 发布时间: 20210715
...的,可以试一下 在 laya.ttmini.js 里 readFile 方法里加上 if (encoding == null || encoding == "") { encoding = null; } 估计 传 encoding 为空字符串到 MiniFileMgr.fs.readFile 里会有问题,反正我加上这句就没问题了 完整代码如下: sta...
来源: Laya_社区 发布时间: 20191204
...meLoop(1, this, bg_loop()); } function bg_loop() { box.x -= 1; if (bg1.x + box.x <= 0) { bg1.y = 650 } if (bg2.x + box.x <= 0) { bg2.x = 650 } } bg_rolling(); 以上是我把教程上的滚动地图用js的实现。发现似乎不能使用...
来源: Laya_社区 发布时间: 20160721
...1 赞同来自: 解决方案: 修改laya.core.js构造函数条件判断 if (FrameAnimation._sortIndexFun === null) 改成 if (FrameAnimation._sortIndexFun == null) 代码如下: class FrameAnimation extends AnimationBase { constructor() { super(); if (FrameAnimation._sortIndexFun == null) { ...
来源: Laya_社区 发布时间: 20191109
...据自己的需求进行修改: window.loadingView = new loadingView(); if(window.loadingView) { window.loadingView.loadingAutoClose=true;//true代表当动画播放完毕,自动进入游戏。false为开发者手动控制 window.loadingView.bgColor("#FFFFFF");//设置背景颜色 window.loading...
来源: Laya3.0_文档 发布时间: 20251010
...t; public static get instance(): NetSocket { if (!NetSocket._instance) { NetSocket._instance = new NetSocket(); NetSocket._instance.endian = laya.net.Socket.LITTLE_ENDIAN; NetSocket._instance.initSo...
来源: Laya_社区 发布时间: 20170602
...ngeHandler(url); } protected onUrlChangeHandler(url:string):void { if(this.szurl!="") this.disp() this.szurl=url; if(url==null){ this.graphics.clear(); }else{ this.skin=url; } } public disp(){ this.skin=""; if(this.szurl){ Laya.loader.clearRes(this.szurl,true); //***2.0这里写法为Laya.lo...
来源: Laya_社区 发布时间: 20181201
...loop===void 0)&& (loop=true); (name===void 0)&& (name=""); if (name)this._setFramesFromCache(this._url+"#"+name); this._isPlaying=true; this.index=((typeof start=='string'))? this._getFrameByLabel(start):start; this.loop=loop; if (this._frames && this._frames.length > 1 &a...
来源: Laya_社区 发布时间: 20161006