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

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

471. GL ERROR :GL_INVALID_OPERATION [ 54%]

GL ERROR :GL_INVALID_OPERATION 有时会报这个错 [.Offscreen-For-WebGL-120AECC8]GL ERROR :GL_INVALID_OPERATION : glDrawElements: Source and destination textures of the draw are the same. 百度了一下,是webgl底层报出来的,不知道这怎么解决?   2017-10-10 添...

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

472. Tween回调方法里如何带参数? [ 54%]

...-06-08 0 0 分享 微博 QZONE 微信 ohkei - as3、as2、h5 赞同来自: for (var i:int = 1; i <= 2;i++ ){ var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); Laya.stage.addChild(sp); Tween.to(sp,{x:300,y:300,alpha:0.5},1000,null,Handler.create(this,function():void {   ...

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

473. bind函数的作用 [ 54%]

...], this.onProtoLoaded.bind(this)); a15715740412 • 2018-01-30 16:31 /** * For a given function, creates a bound function that has the same body as the original function. * The this object of the bound function is associated with the specified object, and has the specified initial parameters. * @par...

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

474. 小游戏安卓不支持filters [ 54%]

...动去绘制线条 下面是部分代码 this.cutLayer.graphics.clear(); for(i = this.lines.length - 1; i >= 0; i--){ var line = this.lines[i]; line.state++; if(line.state > 7){ this.lines.splice(i, 1); } this.cutLayer.graphics.drawLine(line.x1, line.y1, line.x2, line.y2, "#ffffff", this.lineB...

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

475. list 滑动问题 [ 54%]

... 滑动问题 我在UI界面添加了一个list 控件,然后在代码里for循环加载了其它的图片,添加在list上。。然后运行的时候发现不能滑动。。这样写有什么问题吗?是不是还要控制list里面的一些属性啊? 2017-09-22 添加评论 免费帖 --> ...

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

476. 我的玩一玩打包报错,只要是有“<”就报错 [ 54%]

...报错,只要是有“&lt;”就报错 index编码是utf-8  我试验了for 循环 while循环 和if语句 只要是有“&lt;”,"&lt;"后面的变量或者值就会报错 我的IDE版本1.7.18   附件 : --> 2018-04-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

477. List 下的点击事件怎样去写? [ 54%]

List 下的点击事件怎样去写? var data:Array = []; for(var m:int =0;m&lt;1;m++){ data.push({m_label:{text:"快点吧!我等到花儿都谢了"}}); data.push({m_label:{text:"你那啥网啊,也太次了吧!"}}); data.push({m_label:{text:"大家好,欢迎见到大家"}}); data.push({...

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

478. 请问如何获取UI页面上的元素列表,不通过var名称一个个获取 [ 54%]

...不通过var名称一个个获取。如as里有this.numChildren,然后用for可以一个个循环出来。那我在Js里有var indexView = new IndexUI(), indexView.numChildren或者indexView.childs,有这样类似的使用吗? 2017-08-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

479. MovieClip的target和currentTarget属性为undefined? [ 54%]

...t和currentTarget属性为undefined? private function showNowPic():void{ for each(var ul:String in pics){ var mc:MovieClip = new MovieClip; mc.load(ul); this.addChild(mc); mc.on(Event.COMPLETE,this,stopNowMC) } } private function stopNowMC(e:Event):void{ trace(e.currentTarget); trace(e.target); Mo...

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

480. Sprite.drawTexture出来的图片有点模糊 [ 54%]

...stead if smoothing is needed. See https://www.chromestatus.com/f ... 29152 for more details. (anonymous) @ laya.core.js:15863 laya.core.js:12205 loader callback cost a long time:128 url=face/TopUI760x50.png 2017-12-19 0 0 分享 微博 QZONE 微信 wudi199553 赞同来自: 你下面这行是报错...

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