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

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

1391. 用xml描述创建一个clip,interval字段妖孽无效 [ 50%]

...                }                 this.ElementView.addChild(clip);             } config.xml本份规矩,老老实实,勤勤恳恳用utf8编码的,长这个样子 <layout>         <clip id="1" res="res/logo.png" anchorX="0.5" anchorY="0.5" clipX="...

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

1392. 3D场景里面怎么画线条 [ 50%]

...le.log("线段数量:", wayList.length);         this.mainScene.addChild(pl);         for (let i = 1; i < wayList.length; i++) {             pl.addLine(wayList[i - 1], wayList[i], Laya.Color.RED, Laya.Color.RED);         } 2019-11-19 0 2 分享...

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

1393. list图片路径没问题.为什么图片就是不显示.啊啊啊也,求解答 [ 50%]

...eList.vScrollBarSkin = ""; this._furnitureList.array = []; this..addChild(this._furnitureList); } private __renderFurnitureItem(cell:FurnitureItemCell, index:number):void { cell.furnitureInfo = cell.dataSource; } http://layaair.ldc.layabox.com ... DList 官方例子也有。 你不写逻...

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

1394. setSubPixels画布擦除不掉 [ 50%]

...age = new Laya.Image(this.aUrl); aImg.scaleX = aImg.scaleY = 2; Laya.stage.addChild(aImg); aImg.mouseEnabled = false; this.aImg = aImg; } //清除目标纹理的像素 let _sourceTex:Laya.Texture = Laya.Loader.getRes(this.aUrl); let ret = new Uint8Array(_sourceTex.width * _sourceTex.height * 4); let...

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

1395. ReferenceError: Loading_fly is not defined [ 50%]

...2); this.fly.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.diango.addChild(this.fly) this.diango.show(); this.diango.popup(); } _proto.onClose = function () { this.diango.close(); } return Loading_fly; }(Laya.Sprite); 2017-11-08 0 0 分享 微博 QZONE 微信 wudi199553 赞同来自: 根据...

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

1396. 用最新版本的IDE开发,用AS语言开发,用HttpRequest加载图片报错,用JS语言开发却可以加载 [ 50%]

...到舞台; var sp:Sprite = new Sprite(); sp.loadImage(url); Laya.stage.addChild(sp);//添加到舞台 } private function errorHandler(e:Object):void { } 是无法显示图片的   而用JS开发,用JS的事例,却是可以显示的 2017-10-11 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

1397. httpRequest send返回Request failed Status:0 [ 50%]

...图片到舞台 var sp = new Laya.Sprite(); sp.loadImage(url); Laya.stage.addChild(sp); //添加到舞台 }; GameMain.prototype.errorHandler = function (e) { }; return GameMain; }()); new GameMain(); //# sourceMappingURL=LayaSample.js.map 但运行在玩一玩平台下调用相同代码则返回Requ...

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

1398. 文字在框内滑动、滚动文本 [ 50%]

...   this.txt.fontSize=20;     this.txt.color="#ffffff";     Laya.stage.addChild(this.txt);     this.txt.on(Laya.Event.MOUSE_DOWN, this, startScrollText); } function startScrollText(){     this.prevX = this.txt.mouseX;     this.prevY = this.txt.mouseY;     Laya.stage.on(Laya.Event.MOUSE_M...

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

1399. mac平台1.7.20.2beta版本下compileTargets设置不生效 [ 50%]

...aya.stage.bgColor = '#23238E'; //将文本内容添加到舞台 Laya.stage.addChild(txt); } } }  2. 修改.as3proj文件相应标签如下 <compileTargets> <compile path="src\HelloWorld.as" /> </compileTargets> 3. 运行后依然编译执行默认生成的LayaSamples.as 2018-09-14...

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

1400. 问一下tween的一些参数怎么设置 [ 50%]

...00); sp=new Sprite(); sp.graphics.drawCircle(0,0,50,"#00FFFF"); Laya.stage.addChild(sp); sp.pos(100,100); Tween.to(sp,{x:500},1000,Ease.backIn,Handler.create(this,onTween1)); } private function onTween1():void { // TODO Auto Generated method stub num ; trace(num); Tween.clearTween(onTween1); Tween.t...

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