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

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

3271. Laya.stage.drawToCanvas 原生ios 使用该api报错,求解决方案 [ 52%]

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

3272. 我这样载入场景问题出现在哪呢?? [ 52%]

我这样载入场景问题出现在哪呢?? //添加3D场景 var scene = Laya.stage.addChild(Laya.scene.load("LayaScene_test/test.ls"));    载入场景怎么什么也没有呢 然后是这样的结果 这是什么情况?? 附件 : --> 2017-08-07 1 条评论 免费帖 --> 分享 微博 Q...

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

3273. laya.d3.graphics.VertexDeclaration [ 52%]

...tic] VertexDeclarationProperty Detail_conchVertexDeclarationpropertypublic var _conchVertexDeclaration:*idproperty id:int  [read-only] 获取唯一标识ID(通常用于优化或识别)。 Implementation     public function get id():intshaderDefineValueproperty shaderDefineValue:int  [read-...

来源: laya_api 发布时间: 20170929

3274. 百度小游戏 内存不断增大的情况 [ 52%]

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

3275. 请问一下 ProtoBuf 支持 as3 版本吗? [ 52%]

请问一下 ProtoBuf 支持 as3 版本吗?  var ProtoBuf:* = Browser.window.dcodeIO.ProtoBuf; 我运行这句时候。。调试就会停了 2016-09-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying...

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

3276. 我在unity打开模型是有颜色的,但是在laya中打开是白色的 [ 52%]

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

3277. 播放一个ani的动效报错parse animation fail:ani2,empty animation created [ 52%]

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

3278. 使用高度图的时候 Cannot read property 'width' of undefined [ 52%]

使用高度图的时候 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

3279. 在Canvas模式下 drawTexture出错 [ 52%]

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

3280. 如何动态绘制自定义模型? [ 52%]

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