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

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

301. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 46%]

...档是错的,几年了至今无解答 let aniEffConfPath = './res/atlas/comp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文...

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

302. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 46%]

...在移动端,Android平台的主流纹理格式是ETC(Ericsson Texture Compression),iOS平台的主流纹理格式是PVRTC(PowerVR Texture Compression)。 需要特别说明的是,ETC1是不支持透明通道的,PVRTC是支持透明通道的,尽管在ETC2的时候,补全了ETC1...

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

303. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 46%]

...this.init() } init() { // 预加载图集 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded ), null, Laya.Loader.ATLAS) } onLoaded(){ Laya.stage.addChild(new TopUI()) Laya.stage.addChild(new TabUI()) this.getGold.on(Laya.Event.MOUSE_DOWN,this,function(){ cons...

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

304. 粒子在webgl情况和canvas情况存在显著差异,请看图 [ 45%]

... 0, "minEndColor": { "0": 0, "1": 1, "2": 0, "3": 1 }, "textureFileName": "comp\\clip_num.png", "emissionRate": 0, "minHorizontalVelocity": 0, "emitterType": "null", "textureCount": 1, "minVerticalVelocity": 0, "boxEmitterVelocityAddVariance": { "0": 0, "1": 0, "2": 0 }, "ringEmitterCenterPosition":...

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

305. 关于LayaAirIDE的几个问题 [ 45%]

...,如TestPage.ui为 "type":"View","child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png", .............. 所有内容全部在一行内,如果用diff看文件新旧版本差异,基本没法看 4. 很多编辑器都是有个组件面板,与资源面板独立,组件面板里面有Button,Image...

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

306. 发现TimeLine的一些问题,像是BUG [ 45%]

...t.show(); //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 Laya.stage.bgColor="#353535"; sp1=createSprite(50,50);//创建方块1 sp2=createSprite(250,50);//创建...

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

307. 微信小游戏编译出错 [ 45%]

...aya_Aaron:ascii编码? private var assetArr:Array=[{url: "res/atlas/comp.atlas"}, {url: "res/atlas/wxlocal.atlas"}, {url: "res/atlas/middleMoive.atlas"}, {url: "res/atlas/resoutel.atlas"}, {url: "res/atlas/texiaolanse.atlas"}]; 我直接load 这些...

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

308. 垂直布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...te btn3: Laya.Button; // 按钮皮肤资源 private skins: string = "atlas/comp/button.png"; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createvbox(); // ...

来源: Laya3.0_文档 发布时间: 20251010

309. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 45%]

...{ //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/...

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

310. 水平布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...te btn3: Laya.Button; // 按钮皮肤资源 private skins: string = "atlas/comp/button.png"; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createHbox(); // ...

来源: Laya3.0_文档 发布时间: 20251010