大约有 1,210 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
Laya_社区(874) Laya2.0_文档(85) Laya3.0_api(61) Laya2.0_api(58) laya_api(55) Laya_示例(32) Laya2.0_示例(27) Laya3.0_文档(18)
...不行了,请查看一下,是否修改一下教程 //创建盒子模型var box:Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1.5,1.5,1.5))) as Laya.MeshSprite3D; 2.属性shadowPSSMCount设置其他值在微信开发环境下会报错.(必现) //生成阴影贴图数...
来源: Laya_社区 发布时间: 20190326
...块文件,预加载造成了GPUMemory过高。 var tPath=this.mergePath(this._resPath,tTileSet.image); this._loader.load(tPath,/*laya.net.Loader.IMAGE*/"image",false); 看了文件,会把json的图像资源全部加载出来, 如果我只想load...
来源: Laya_社区 发布时间: 20191027
...影功能,就没有出现阴影效果。 2.8.0设置阴影的代码: var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.transform.worldMatrix.setForward(new Laya.Vector...
来源: Laya_社区 发布时间: 20201105
...误:LayaAir3D.max.js:13425:TypeError:Cannot read property 'match'of null var tmp=str.match(ShaderCompile3D.INCLUDE) 我怎么才能在android studio中使用LayaPlayer加速器?如你们构建出的android的nativie的代码中 mProxy = new RuntimeProxy(this); mPlugin = new GameEngine(this); ...
来源: Laya_社区 发布时间: 20170906
...果可以当作图片源,再次绘制到其他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
...数和flash不一致 这段代码,flash中输出-1 1,laya中输出255 1var b:ByteArray = new ByteArray(); b.writeByte(-1); b.writeByte(1); b.position = 0; trace(b.readByte()); trace(b.readByte()); 附件 : --> 2015-12-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20151229
... laya.ui.Image; import laya.utils.Browser; public class TestDemo { private var sp:Sprite; public function TestDemo() { Laya.init(500,500); Laya.stage.bgColor="#EEFFCC"; sp=new Sprite(); sp.graphics.drawRect(0,0,100,50,"#FF0000"); sp.size(100,50); // 设置轴心点为显示对象的中心,显示...
来源: Laya_社区 发布时间: 20170106
... if(this.scrollBar.value == this.scrollBar.max){ var that = this; setTimeout(function(){ that.addItem("../../res/ui/listskins/5.jpg"); },1000); ...
来源: Laya_社区 发布时间: 20170912
...换行标签,测试是可以的,注意:换行要有行高lineHeight var html3:HTMLDivElement=new HTMLDivElement(); html3.style.lineHeight=30; html3.style.width=300; html3.style.align="center"; html3.innerHTML="<span>我的第一行要换行</span><br/><span>BBBBBBBBBBB&...
来源: Laya_社区 发布时间: 20161213
...uot;arrow") { //Tree的开/关,当打开一个时,另一个关闭 var item:Cell = e.target.parent as Cell; if (item.dataSource.isOpen == true) { if (this.selectedIndex == -1) { this.selectedIndex = index; } else { if (this.selectedIndex < index) { this.listUI.typeTree.setItemState(this.s...
来源: Laya_社区 发布时间: 20171011