大约有 3,990 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0059 秒)
Laya_社区(2836) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(55)
Laya.stage.drawToCanvas 原生ios 使用该api报错,求解决方案 var htmlC: Laya.HTMLCanvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0); //获取截屏区域的texture let base64 = htmlC.toBase64("image/jpeg", 1); 使用toBase64 报错can`t find variable conchToBase6...
来源: Laya_社区 发布时间: 20190621
我这样载入场景问题出现在哪呢?? //添加3D场景 var scene = Laya.stage.addChild(Laya.scene.load("LayaScene_test/test.ls")); 载入场景怎么什么也没有呢 然后是这样的结果 这是什么情况?? 附件 : --> 2017-08-07 1 条评论 免费帖 --> 分享 微博 Q...
来源: Laya_社区 发布时间: 20170807
...tic] VertexDeclarationProperty Detail_conchVertexDeclarationpropertypublic var _conchVertexDeclaration:*idproperty id:int [read-only] 获取唯一标识ID(通常用于优化或识别)。 Implementation public function get id():intshaderDefineValueproperty shaderDefineValue:int [read-...
来源: laya_api 发布时间: 20170929
... __proto.onLoaded=function(){ if(this.isOpen){ return; } this.isOpen=true; var testView=new TestView(); Laya.stage.addChild(testView); Laya.timer.once(200,this,this.removeUi,[testView]); } __proto.removeUi=function(ui){ if(ui!=null){ ui.destroy(); this.isOpen=false; } } 代码主要是做了重复...
来源: Laya_社区 发布时间: 20190517
请问一下 ProtoBuf 支持 as3 版本吗? var ProtoBuf:* = Browser.window.dcodeIO.ProtoBuf; 我运行这句时候。。调试就会停了 2016-09-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying...
来源: Laya_社区 发布时间: 20160902
...aya.Stage.SCREEN_NODE; Laya.Stat.show(); // 加载插件导出的场景。 var scene = Laya.Scene.load('h5/3333d.ls'); Laya.stage.addChild( scene ); 附件 : --> 归档.zip 2017-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20171227
...一个ani的动效报错parse animation fail:ani2,empty animation created var girlsMc = new Animation(); girlsMc.loadAnimation(d_url+".ani"); girlsMc.play(0,true,"ani2"); this.cmc.addChild(girlsMc); 附件 : --> 2019-08-14 添...
来源: Laya_社区 发布时间: 20190814
使用高度图的时候 Cannot read property 'width' of undefined var terrainSprite = Laya.MeshTerrainSprite3D.createFromMeshAndHeightMap(terrain.meshFilter.sharedMesh, texture, 45.58879852294922, -45.58879852294922); //报错:Cannot read property 'width' of undefinedDemo见附件。 附件 :...
来源: Laya_社区 发布时间: 20170601
...raw():void { texture = Laya.loader.getRes("comp/lhjicon_5.png"); var temp:Texture = Texture.createFromTexture(texture,0,0,texture.sourceWidth/2,texture.height/2); IconSpr.graphics.drawTexture(temp,0,0,temp.sourceWidth,temp.height); temp.destroy(true); } 这样 一样会报错 熊猫大侠 ...
来源: Laya_社区 发布时间: 20180118
... = new Float32Array(verticeArr); const indices = new Uint16Array(faceArr); var vertexDeclaration = Laya.VertexMesh.getVertexDeclaration("POSITION,NORMAL"); return new Laya.MeshSprite3D(Laya.PrimitiveMesh._createMesh(vertexDeclaration, vertices, indices)); } 要加UV的话,自己添吧。...
来源: Laya_社区 发布时间: 20180522