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

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

131. 如何使用javascript版本的加载模式 [ 54%]

...件,然后在实例化UI界面之前加上Laya.View.uiMap = Laya.Loader.getRes("ui.json"); mrchenx • 2017-10-17 14:25 ok,我试一下!

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

132. 请教制作android联网版带有cache的apk包流程 [ 54%]

...作的? 请教下微信小游戏的内存数据缓存? Laya.Loader.getRes请教 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 请教一下,页面元素在不同的设备上,怎么让它居中显示呢或者自适应宽度? 请教下 ...

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

133. 图集打包后使用Texture不显示,项目整个已经传上来了 [ 54%]

...mplete)); } private onComplete(): void { var texture:Texture = Laya.loader.getRes("start/sg.png"); var sp = new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); Laya.stage.addChild(sp); var ani: Laya.Animation = new Laya.Animation(); ani.loadAtlas("res/start.json"); // 加载图集动画 ani.int...

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

134. 请问特效播放的速率可以自定义吗? [ 54%]

...plete(effectPath: string): void { let spriteEffect: Sprite3D = Laya.loader.getRes(effectPath) this._curRole.addChild(spriteEffect) let effectChilds: any = spriteEffect._childs[0]._childs for (let v of effectChilds) { //v.particleSystem.emission.emissionRate = 10 v.particleSystem.play() } }

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

135. [LayaAir3]3D场景里面鼠标感应区域 3.2.1跟3.3不同 [ 53%]

...his, null, null, false)).then(() => { this.spRole.texture = Laya.loader.getRes("RenderTexture.rendertexture"); //设置纹理的宽高为舞台大小,这样才不会拉伸变形 this.spRole.texture.sourceWidth = Laya.stage.width; this.spRole.texture.sourceHeight = Laya.stage.height; //添加2D...

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

136. 图片通过drawTexture平铺出现缝隙 [ 53%]

... this.addChild(this.darwSprite);         var t: Texture = Laya.loader.getRes("load/0.png");         this.darwSprite.graphics.drawTexture(t,0,0);         this.darwSprite.graphics.drawTexture(t,176,0);         this.darwSprite.graphics.drawTexture(t,176*2,0);   采用这方式在sprite...

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

137. 如何预先下载资源到本地,laya里面又怎么引用已下载的资源文件?路径要怎么设置? [ 53%]

...以对服务器的资源进行预加载,并缓存到本地,Laya.loader.getRes可以获取缓存下的资源文件! 我盼乙卯 • 2018-05-31 15:42 @cuixueying:请问这个缓存到本地是缓存到硬盘上可以反复读取,还是仅仅加载到内存中,退出游戏就么有了, 这...

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

138. GlowFilterTimeLine/Tween一起用的问题 [ 53%]

...{ ape = new Sprite(); ape.loadImage(apePath);   var texture = Laya.loader.getRes(apePath); ape.x = (Laya.stage.width - texture.width) / 2; ape.y = (Laya.stage.height - texture.height) / 2;   Laya.stage.addChild(ape); }   function applayFilter() { //创建一个发光滤镜 //var glowFilter = new ...

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

139. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 53%]

...ng", Handler.create(this, function() { // 图片加载 var t = Laya.loader.getRes("res/island.png"); var tBall = Texture.create(t,866,190,548,305); var tTower = Texture.create(t,data.tower[towerLel].x,data.tower[towerLel].y,data.tower[towerLel].w,data.tower[towerLel].h); var tAeroboat = Texture.crea...

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

140. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 53%]

...era(){ this.curStatus =!this.curStatus; let data:ArrayBuffer = Laya.Loader.getRes(this.AllPng[this.curStatus ? 0: 1]);//pic-001 const x2 = new Uint8Array(data); let p = new window['PNG'](x2); let getData = p.decode();//rgba数组序列 this.texture.setPixels(getData); } private onKey(e){ if(e.keyCod...

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