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

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

731. Image.loadImage 方法加载问题 [ 61%]

...andler = new Laya.Handler(this, this.updateListItem); this.publicSpaceList.array = ; this.addChild( this.publicSpaceList ); public setPublicSpacesData (_publicSpacesInfo:any) : void ///调用这个方 传入参数 里面有每一个图片的名字 {  this.publicSpacesInfo = _publicSpacesInfo;  thi...

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

732. 获得节点在stage中的坐标 [ 61%]

...钮坐标问题导致无法点击 Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写啊, 3d坐标转换问题 问题状态 最新活动: 2016-09-27 09:39 浏览: 2352 关注: 2 人

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

733. 关于HttpRequest [ 60%]

...{ for (var i in param) { var k = key == null ? i : key + (param instanceof Array ? '[' + i + ']' : '.' + i); paramStr += CommonUtils.urlEncode(param[i], k, encode); } } // var paramStr = ""; // for (var prop in param) { // paramStr += prop + "=" + param[prop] + "&"; // } // paramStr = paramStr.s...

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

734. 在加载3d人物的时候,Laya.timer.loop会卡顿,由于又需要每隔一段时间执行一个方法,暂时想到了用Laya.timer.loop,这个有什么好的解决方案替代吗? [ 60%]

...   public function frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void {             _create(true, true, delay, caller, method, args, coverBefore);         } 2018-04-09 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...

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

735. 纹理截取后内存释放不了 [ 60%]

纹理截取后内存释放不了 private var oriDBArr:Array = null;//位图源 var tex:Texture = Laya.loader.getRes(_url); for (var i:int = 0; i < list1["oriBDPos"].length; i++ ) { var g:Graphics = new Graphics(); var t:Texture = Texture.createFromTexture(tex, posObj.x, posObj.y, posObj.w, posO...

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

736. 骨骼动画如何设置成灰色 [ 60%]

...的链接 提交 1 个回复 cuixueying 赞同来自:   var grayscaleMat:Array = [0.3086, 0.6094, 0.0820, 0, 0, 0.3086, 0.6094, 0.0820, 0, 0, 0.3086, 0.6094, 0.0820, 0, 0, 0, 0, 0, 1, 0]; var grayscaleFilter:ColorFilter = new ColorFilter(grayscaleMat); mArmature.filters=[grayscaleFilter];骨骼动...

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

737. 如何识别画布上用手绘制的文字 [ 60%]

...问题 富文本下划线绘制bug drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 如何识别当前环境是微信小游戏环境 如何把本地的svg文件读取到内...

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

738. 纹理集包含多个动作的时候按照技术文档写出来的不能正常播放呢? [ 59%]

...    roleAni.y = 0; } private function aniUrls(aniName:String, len:int):Array {     var urls:Array = [];     for (var i:int = 1; i <= len; i++)     {         //动画资源路径要和动画图集打包前的资源命名对应起来         urls.push(aniName + i + "...

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

739. Graphics如何设置fillStyle和strokeStyle不同透明度 [ 59%]

...    */         public function drawPoly(x:Number, y:Number, points:Array, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void {目前暂时不支持颜色渐变,请使用其他替代方式替换渐变功能! 2018-04-16 0 2 分享 微博 QZONE 微信 王 坤 赞同来自: 什么...

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

740. 请教Laya.timer.once如何设置回调参数 [ 59%]

...描述是 public function once(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 但是照这个写了 Laya.timer.once(800,this,sh,[1,3,4]) 之后,在回调函数sh 里面 收到的不是数组,请问这个正确的传参是怎么传的? 2017-08-27 添...

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