大约有 3,979 项符合查询结果, 库内数据总量为 30,926 项。 (搜索耗时: 0.0062 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
请问一下 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
...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.st...
来源: Laya2.0_api 发布时间: 20190513
...y导出的场景,相机节点找不到,移动和属性设置都做不了 var scene:Scene=Scene.load("LayaScene_Main/Main.ls"); Laya.stage.addChild(scene); camera = Laya.stage.getChildByName("Main Camera") as Camera; ....... camera.viewportPointToRay(point, ray); 提示错误:Cannot read prope...
来源: Laya_社区 发布时间: 20180415
....json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); 在onLoaded var textrue = Laya.loader.getRes(longcard/xxx.png)总是undedined。。。求解。。。 相关链接 : http://ask.layabox.com/question/486 图集打包出来没有prefix。。。get了 2017-03-06 添加评论 免费...
来源: Laya_社区 发布时间: 20170306
...放到一个显示对象容器内部,譬如sprite,然后为sprite声明var即可 2017-07-04 0 0 分享 微博 QZONE 微信 sword2015 赞同来自: 本来是想节约效率,哎,没办法了,你说的办法,之前我有弄过,就是显示对象继承太多了,谢谢了哈 2017-07-04 0 ...
来源: Laya_社区 发布时间: 20170704