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

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

281. 动画加载不出 [ 72%]

...预加载了,在main函数里面 叔年心~厌世 • 2019-10-10 16:45 for(var i=0;i<this.moneyArr[rr].length;i++){ let sp=new Laya.Animation(); //添加金币 sp.loadAnimation('anis/money.ani'); sp.play(0,true); loadder.addChild(sp); loadder.name = 'money'; sp.pos(this.moneyArr[rr][i],-15); ...

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

282. 2.3.0beta 各种bug [ 72%]

...    TrailGeometry      resetGeometry(){   var count=this._endIndex; for (var i=this._activeIndex;i < count;i++){ var nextIndex=i+1; if (nextIndex!==count) this._owner._totalLength-=this._subDistance[nextIndex]; if (this._isTempEndVertex && (nextIndex===count-1)){ var offset=this._fl...

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

283. 2.0.0beta5版本drawPoly设置坐标失效 [ 72%]

...lose:Boolean, convex:Boolean, dx:Number, dy:Number):void { var ci:int = 0; for (var i:int = 0, sz:int = points.length / 2; i < sz; i++) { var x1:Number = points[ci]+dx, y1:Number = points[ci + 1]+dy; points[ci] = x1; points[ci + 1] = y1; ci += 2; } _getPath().push(points, convex); } 2018-11-27 0 ...

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

284. 图集动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 72%]

... */ private aniUrls(aniName:string,length:number):any{ var urls:any = []; for(var i:number = 0;i<length;i++){ //动画资源路径要和动画图集打包前的资源命名对应起来 urls.push("role/"+aniName+i+".png"); } return urls; } } new AtlasAniDemo(); ``` 代码运行效果如动图9所示...

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

285. 加载 unity3D导入的旧版蒙皮动画时出现错误 [ 71%]

...误 加载 unity3D导入的旧版蒙皮动画时出现错误 [.Offscreen-For-WebGL-000001FC83792110]GL ERROR :GL_INVALID_OPERATION : glDrawElements: attempt to access out of range vertices in attribute 2 INVALID_VALUE: uniformMatrix4fv: invalid srcOffset 然后模型部份位置错乱   加载动...

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

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

...oid{ let source:BindSource; let position:Laya.Point=Laya.Point.create(); for(let index:number=0;index&lt;this.__bindList.length;index++){ source=this.__bindList[index]; SkeletonUtils.getBoneLocalPoint(this,source.boneName,position); source.x=source.offestX+position.x; source.y=source.offestX+posi...

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

287. as3字符串截取int的问题 [ 71%]

...onfig.gamrRoomEnterPower.length); console.log(DConfig.gamrRoomEnterPower); for (var i=0;i &lt; DConfig.gamrRoomEnterPower.length;i++){ DConfig.gamrRoomEnterPower=int(DConfig.gamrRoomEnterPower[i]); } });[/i] 2017-07-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

288. Spine动画最后一帧无法正常显示 [ 71%]

...amp; (minIndex &gt; 0)){ minIndex--; } if (minIndex &lt; this._clipIndex){ for (i=minIndex;i &lt; this._clipIndex;i++){ this._createGraphics(i); } } tGraphics = this._templet.getGrahicsDataWithCache(this._aniClipIndex, this._clipIndex); } if (tGraphics &amp;&amp; this.graphics != tGraphics) { this.g...

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

289. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 71%]

...calSpace; }; this.sprite.pos(x + w-this.fontSize-this.horizontalSpace, 0); for (let i = 0; i &lt; this.text.length; i++) { const element = this.text.charAt(i); var _x = xAction(j); var _y = yAction(printNumber); this.sprite.graphics.fillText(element, _x, _y, fonts, this.color, "left"); if (yAction(p...

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

290. 内存优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 71%]

...100帧间隔后 if(createTime>=100) { //每200帧间隔创建30个雪花 for(var i:int=0;i640+20||img1.scaleX(图2-1) 在一些特殊情况我们需要注意`Hanlder.create()`的使用方式,我们仔细看图2-1中的`Hanlder.create()`方法说明。 > 从对象池内创建一个Handler,默...

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