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

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

2701. BlinnPhong材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 63%]

...aya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` ![](img/4.png)(图4) ##### 法线贴图 **Normal maps(法线贴图)**是一个灰度图,可...

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

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

...d([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loaded,null)); } private loaded():void{ var img: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.sca...

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

2703. 使用js压缩工具报错 [ 63%]

...ZONE 微信 kylin 赞同来自: 第813行 Config.FunRestart=Handler.create(this,this.on重启); 定义的变量、函数名等,不要出现中文等非ASCII字符,变量的命名最好要符合规范。   LayaAirIDE里的压缩工具会分析代码,类似的中文命名的变量,通不过...

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

2704. layacmd mac 系统安装不上,急 [ 63%]

...pm ERR! npm ERR! Failed at the electron@1.8.6 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /var/root/.npm/_logs/2018-05-08T04_07_13_726Z-debug.log   环境: mac...

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

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

...Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); } private function completeHandler(data:Object):void { //加载完成返回的data是arraybuffer; //..........

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

2706. 同一个Animation,创建多个实例只能显示一个(测试项目已上传) [ 63%]

.../////////////wheelas.as public function wheel(){ this.graphics.drawCircle(0,0,40,"#fff"); _wheel= new Animation(); _wheel.loadAnimation("wheeling.ani"); } public function init():void{ this.addChild(_wheel); _wheel.play(); }   附件 : --> 相关链接 : https://ask.layabox...

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

2707. 关于多个小动画打包到一个图集动画的问题 [ 63%]

...集 Laya.loader.load("res/atlas/hero.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) //先把四张小图拿出来 var hero_down1=Laya.loader.getRes("hero/hero_down1.jpg"); var hero_down2=Laya.loader.getRes("hero/hero_down2.jpg"); var hero_down3=Laya.lo...

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

2708. 二进制文件打包后,读取不到zip包内的文件 [ 63%]

...r.PLFB }]         Laya.loader.load(loaditem, Laya.Handler.create(this, function (res) {             let item = 'res/layabox.png'             let getres = Laya.loader.getRes(item)             console.log('getres',getres) //这个返回undefined...

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

2709. 如何用代码控制panel的vscroll滚动幅度 [ 63%]

...e.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { //panel 切记设置宽高,否则panel不显示 var panel:Panel=new Panel(); panel.size(300,300); panel.pos(100,100); panel.vScrollBarSkin='comp/vscrol...

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

2710. 构建andorid工程后,在AndoridStuido中模拟器调试运行出现如下问题,然后打不开APP [ 63%]

.../com.mygame.Shjy3Android" WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix. pkg: /data/local/tmp/com.mygame.Shjy3Android Success Launching application: com.mygame.Shjy3Android/demo.MainActivity. DEVICE SHELL COMMAND: am start -D -n "com.mygam...

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