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

大约有 584 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0044 秒)

1. Byte writeArrayBuffer的Bug [ 100%]

...yBuffer的Bug     __proto.writeArrayBuffer=function(arraybuffer,offset,length){         (offset===void 0)&& (offset=0);         (length===void 0)&& (length=0);         if (offset < 0 || length < 0)throw "writeArrayBuffer error - Out of bounds";   ...

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

2. socket大型项目回调 [ 98%]

...ks[event] || []).push(fn); } public request(route, msg, cb) { if(arguments.length === 2 && typeof msg === 'function') { cb = msg; msg = {}; } else { msg = msg || {}; } route = route || msg.route; if(!route) { return; } this.reqId++; if(this.reqId>127){ this.reqId = 1; } var reqId = this.r...

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

3. 无法对载入的材质操作。sharedMaterials的length为0 [ 97%]

无法对载入的材质操作。sharedMaterials的length为0 问题描述:如图 想要改变该材质的高光specularColor的颜色使得材质看起来更自然(我知道可以直接设置光源的高光颜色directionLight.specularColor= new Vector3(0,0,0);但是我想只针对这3d模型设...

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

4. emoji表情文字乱码 [ 97%]

...tr){         this._sourceStr=str;         var texLen = str.length;         var idx = -1;         this._words = ;         while (++idx < texLen) {             var character = str.charAt(idx);             var code = str.charCodeAt(idx)...

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

5. Bug:移动设备当两手指同时触摸屏幕,event.touches数组的长度有很大概率不对 [ 96%]

... 两手指同时触摸屏幕,当两次按下MouseDown监听到的touches.length=2时,很大概率当松开一指,MouseUp时touches.length还是为2,再按下一指,MouseDown时touches.length=3,这时准确的touches.length应该等于2才对。 2018-03-08 添加评论 免费帖 --> 分...

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

6. 分享个用美术资源做位图文本的方法。。。 [ 96%]

...rite",this._childs[k]); } this.removeChildren(); var charTotal: number = v.length; var charSps: any = ; for(var i=0;i<charTotal;i++){ var targetChar = v.substr(i,1); var charData: any = this._jsonData.frames[targetChar]; if(!charData){ console.warn("没有找到对应的字符:" + targetChar); ...

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

7. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 95%]

...private createChars(v: string): void { if (!v) { return; } let charNum = v.length; for (let i = 0; i < charNum; i++) { let char = v.charAt(i); let resName = this.getResName(char); let sp: Laya.Sprite = this.getSprite(); let tx = Laya.Loader.getRes(resName); if (!tx) { console.warn(TipConfig.tips....

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

8. list reseatY 和 length 区别 repeatY是指当前窗口可显示的个数 还是总的项数 [ 95%]

list reseatY 和 length 区别 repeatY是指当前窗口可显示的个数 还是总的项数 2018-07-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 显示 2018-07-28 0 2 分享 微博...

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

9. 当屏幕尺寸,缩放模式,横竖屏 发生改变时会报错Uncaught TypeError: Cannot read property 'length' of null [ 95%]

...竖屏 发生改变时会报错Uncaught TypeError: Cannot read property 'length' of null 2017-08-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 182*****369 赞同来自: cuixueying 已解决,当destroy函数调...

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

10. ts加密md5码封装 [ 94%]

...map((x: number) => target[index + x]) : [] ) .filter((x: any[]) => x.length > 0); if (markString) result = result.map((x: any[]) => x.join("")) return result; } padding(str: string | any[], length: number, char: string, tail: boolean = true, isArray: boolean = Array.isArray(str)) { let a...

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