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

大约有 1,613 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)

501. 如何用代码控制panel的vscroll滚动幅度 [ 66%]

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

502. 滤镜-颜色滤镜 [ 66%]

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

503. 从Unity中编辑并导出摄像机(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 66%]

...统计信息 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

504. 使用laya官方示例代码制作微信小游戏无法显示 [ 66%]

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

505. 3d资源释放的问题 [ 66%]

...网上下载吗,有机会控制缓存的加载吗 2.lh或者ls在loader.create的时候就会把资源加载到显存里面,如果场景上的物件、特效比较多的话,利用lh一遍加载一遍释放,显然很慢,有什么缓解方案吗 3.如果是时常会出现特效,但是特...

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

506. BlinnPhong材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 66%]

...漫反射贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = material; ``` ![](img/4.png)(图4) ##### 法线贴图 **Norma...

来源: Laya2.0_文档 发布时间: 20210714

507. laya.d3.graphics.VertexBuffer3D [ 66%]

...) 创建一个 VertexBuffer3D,不建议开发者使用并用VertexBuffer3D.create()代替 实例。 VertexBuffer3D  bind():Boolean[override] VertexBuffer3D  destroy():void[override] VertexBuffer3D  getData():* 获取顶点数据。 VertexBuffer3D  setData(data:*, bufferOffset:int = 0, dataSt...

来源: Laya2.0_api 发布时间: 20190513

508. laya.device.media.HtmlVideo_API3.0 [ 66%]

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

509. Laya.Tween.to 用这个做缓动动效, 变动scale值有问题, [ 66%]

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

510. 滤镜-颜色滤镜 [ 66%]

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