大约有 1,613 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
Laya_社区(1206) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya2.0_示例(43) Laya3.0_文档(41) Laya2.0_api(13) laya_api(12)
...ya.stage.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...
来源: Laya_社区 发布时间: 20170719
...howall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { normalizeApe(); makeRedApe(); grayingApe(); } function normalizeApe() { var originalApe = createApe(); apeTexture = Laya.loader.getRes(ApePath); originalApe.x = (Laya.stage.width...
来源: Laya_示例 发布时间: 20251209
...统计信息 Laya.Stat.show(); //预加载角色动画资源 Laya.loader.create("monkey/monkey.ls",Laya.Handler.create(this,this.onSceneOK)); } onSceneOK() { //添加3D场景 var scene = Laya.loader.getRes("monkey/monkey.ls"); Laya.stage.addChild(scene); //从场景中获取摄像机 var camera = sc...
来源: Laya2.0_文档 发布时间: 20210715
...ya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100); this.createLabel("#FFFFFF", ...
来源: Laya_社区 发布时间: 20180529
...网上下载吗,有机会控制缓存的加载吗 2.lh或者ls在loader.create的时候就会把资源加载到显存里面,如果场景上的物件、特效比较多的话,利用lh一遍加载一遍释放,显然很慢,有什么缓解方案吗 3.如果是时常会出现特效,但是特...
来源: Laya_社区 发布时间: 20180814
...漫反射贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = material; ``` (图4) ##### 法线贴图 **Norma...
来源: Laya2.0_文档 发布时间: 20210714
...) 创建一个 VertexBuffer3D,不建议开发者使用并用VertexBuffer3D.create()代替 实例。 VertexBuffer3D bind():Boolean[override] VertexBuffer3D destroy():void[override] VertexBuffer3D getData():* 获取顶点数据。 VertexBuffer3D setData(data:*, bufferOffset:int = 0, dataSt...
来源: Laya2.0_api 发布时间: 20190513
...y Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getVideo hasListener isCreateFromURL off offAll offAllCaller on once setSource create destroyUnusedResources Constructors constructor new HtmlVideo(): HtmlVideo Overrides Bitmap.__constru...
来源: Laya3.0_api 发布时间: 20231102
...aya.Tween.to(this.load_1, { scaleX:0.01 }, 250, Laya.Ease.quadOut, Handler.create(this, this.tw1Complete1)); 只要是设置scale值最终变为0就有问题,, var style=this.getStyle(); 这个获取的style是空的,,这个问题不是必现的,,,,, 附件 : --> 2018-03-15 添加...
来源: Laya_社区 发布时间: 20180315
...LL; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.normalizeApe(); this.makeRedApe(); this.grayingApe(); } normalizeApe() { let originalApe = this.createApe(); originalApe.x = (Laya.stage.width - apeTexture.width * 3) / 2; originalA...
来源: Laya2.0_示例 发布时间: 20251209