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

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

511. 动画不显示 [ 42%]

...aya.utils.Timer;     import laya.display.Sprite;     import laya.net.Loader;     import laya.ui.TextArea;     import laya.resource.Texture;     import laya.maths.Point;     import laya.utils.Tween;     import laya.d3.resource.models.PrimitiveMesh;     import laya.debug.DebugP...

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

512. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 42%]

...is.getResName(char); let sp: Laya.Sprite = this.getSprite(); let tx = Laya.Loader.getRes(resName); if (!tx) { console.warn(TipConfig.tips.haveNoTheChar, char); } sp.texture = tx; this.chars.push(sp); this.addChild(sp); } this.sortCharsByAlign(this._align); } /** * 水平对齐方式 */ public set al...

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

513. drawTexture 画出来的数据会有以前的数据 [ 41%]

...01-13 11:36 this.url = comp/lhjicon_5.png" this.cached_texture = Laya.loader.getRes(this.url) // 每次重新绘制的时候 this.graphics.clear() this.graphics.drawTexture(this.cached_texture) // 而不是每一次都 drawcanvas 然后再转成 texture,drawcanvas作用就跟截屏一样 kezh...

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

514. 微信小游戏加载资源问题 [ 40%]

...) { if (window.navigator.userAgent.indexOf('MiniGame') < 0) { Laya.Laya.loader.load(fileUrl, callBack); } else { if (fileType == Laya.Loader.IMAGE || fileType == Laya.Loader.SOUND) MiniFileMgr.downOtherFiles(fileUrl, callBack, fileUrl, true, false); else MiniFileMgr.downFiles(fileUrl, encoding, c...

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

515. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 40%]

...ource = ["Export/LayaScene_JJF/Conventional/JJF.lh"];         Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete));     }     onComplete(){         //创建场景         let scene = Laya.stage.addChild(new Laya.Scene3D());         //创建...

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

516. 2.12.2beta1 诸多bug [ 36%]

...,因为loadImage为异步,而在image的skin更换皮肤时,可以从loader里使用getRes加载到texture,但此时texture还未加载完成,所以导致source._bitmap为null,无法显示的问题,这个问题目前我们没有较好的解决方案,只能使用预加载或在loadIma...

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

517. Unity插件使用说明(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 35%]

...断游戏本身的体验。 在加载2D资源的时候,通常使用`Laya.loader.load()`方法预加载,而预加载3D资源必须要用`Laya.loader.create()`方法。在加载完成后,可以直接使用`Laya.loader.getRes()`这个方法来获取加载完成的资源。 批量预加载的示...

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

518. 分享一个Shader版的CoolDown实现 [ 31%]

...渲染效果   alpha遮罩   用法: var texture: Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); -----...

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

519. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 26%]

... Math.random()); if(this.bg == null){ //贴图纹理 this.bgTexture = Laya.loader.getRes("res/floor.png"); this.bg = new laya.display.Sprite(); this.bg.graphics.clear(); this.addChild(this.bg); //因为上面的图片是截取的 所以右边可能没有图片了 这里补一个 this.rightBg = new l...

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

520. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 25%]

...e.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = particle; //获取这个粒子特效的所有粒子系统,用于后面整体播放 for (var i = 0, len = this._particle.numChildren; i < len; i++) { ...

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