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

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

1881. 模型的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之模型和网格) [ 49%]

...模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMes...

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

1882. 模型的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之模型和网格) [ 49%]

...模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMes...

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

1883. 当使用Image作为一个对象的遮罩时,设置Image的ScaleX为0时遮罩失效! [ 49%]

...g:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(img); var imgMask:Laya.Image = new Laya.Image(); imgMask.skin = img.skin; imgMask.scaleX = 0; // 无效 // imgMask.scaleX = 1 // 有效 //imgMask.scaleX = 0.5 // 有效 img.mask = imgMask; imgMask.repaint(); } } new ...

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

1884. 合并到大图集时的drawCall问题 [ 49%]

...的索引顺序一致的吧,就是按照childIndex的顺序。就是和addChild的先后顺序一致 譬如a代表图集A当中的切图,b代表图集B当中的切图 子级顺序是 aaaaabbbbb的时候drawCall为2 子级顺序是 ababababab的时候drawCall则为10 rainysky • 2017-11-27 14:35...

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

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

...到舞台; 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

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

...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

1887. httpRequest send返回Request failed Status:0 [ 49%]

...图片到舞台 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

1888. setSubPixels画布擦除不掉 [ 49%]

...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

1889. ReferenceError: Loading_fly is not defined [ 49%]

...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

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

...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