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

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

131. 启动画面LoadingView(TypeScript-LayaNative原生服务-LayaNative基础文档) [ 86%]

...求进行修改: ```javascript window.loadingView = new loadingView(); if(window.loadingView) { window.loadingView.loadingAutoClose=true;//true代表引擎控制关闭时机。false为开发者手动控制 window.loadingView.bgColor("#FFFFFF");//设置背景颜色 window.loadingView.setFontColor("...

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

132. 多点触控的使用(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 86%]

...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

133. 多点触控的使用(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 86%]

...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

134. 打包到头条IOS端异常: readFile callback [ 86%]

...的,可以试一下   在 laya.ttmini.js 里 readFile 方法里加上   if (encoding == null || encoding == "") {             encoding = null; } 估计 传 encoding  为空字符串到 MiniFileMgr.fs.readFile 里会有问题,反正我加上这句就没问题了   完整代码如下: sta...

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

135. 飞机大战地图滚动报错,麻烦看下? [ 86%]

...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

136. 2d帧动画bug:编译运行会掉帧,编辑器不会掉帧,2.2.0版本以上都有这个问题 [ 86%]

...1 赞同来自: 解决方案: 修改laya.core.js构造函数条件判断 if (FrameAnimation._sortIndexFun === null) 改成 if (FrameAnimation._sortIndexFun == null)   代码如下: class FrameAnimation extends AnimationBase { constructor() { super(); if (FrameAnimation._sortIndexFun == null) { ...

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

137. 启动画面LoadingView · LayaAir3.3 · 引擎文档 · LAYABOX [ 86%]

...据自己的需求进行修改: window.loadingView = new loadingView(); if(window.loadingView) { window.loadingView.loadingAutoClose=true;//true代表当动画播放完毕,自动进入游戏。false为开发者手动控制 window.loadingView.bgColor("#FFFFFF");//设置背景颜色 window.loading...

来源: Laya3.0_文档 发布时间: 20251010

138. socket无法连接服务器 [ 86%]

...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

139. 2.0下资源加载和销毁内存问题 [ 86%]

...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

140. 全局动画不能加载 [ 85%]

...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