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

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

181. putimagedata 起作用 [ 57%]

...adImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.po...

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

182. 调用时间轴动画丢失皮肤问题? [ 56%]

...用的教程里面的那个例子~ haisenshushu • 2018-03-29 15:48 Laya.loader.load("res/atlas/comp.json", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("XXXXX1.ani"...

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

183. [LayaAirIDE3]xcode切入切出声音播放 [ 56%]

... string): void {         Laya.SoundManager.stopAll();         Laya.loader.clearRes(currentBgmUrl);          Laya.loader.load([{ url: currentBgmUrl, type: Laya.Loader.SOUND }],             Laya.Handler.create(this, () => {                 console.log("----playMusic111 ...

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

184. Texture如何转换成Texture2D有人搞过吗 [ 56%]

...的URL,因为这个URL没有后缀,所以加载时要写上类型 Laya.loader.load([{url:url,type:"image"}], Handler.create(this,function(){ //接下来 }));5.接下来回调,卸载之前的资源 Laya.loader.clearRes(oldUrl);6.加载Texture2D   这样就原图片地址是个Texture2D,生...

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

185. MP3文件释放后重新加载报错? [ 56%]

MP3文件释放后重新加载报错? 在laya加速器上,使用Laya.loader.clearRes("xxx.mp3")释放mp3文件后无法再次加载该mp3文件,附上demo。 附件 : --> myLaya.rar 2016-12-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

186. Handler.create的回收问题 [ 56%]

...his.h1 = Laya.Handler.create(this, this.loadPicComplete, null, true); Laya.loader.load("res/img/1.png", this.h1); } private loadPicComplete(): void { Laya.timer.once(2000, this, this.actT); } private actT(): void { this.h2 = Laya.Handler.create(this, this.loadPicComplete, null, true); console.log(th...

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

187. 纹理集包含多个动作的时候按照技术文档写出来的能正常播放呢? [ 56%]

... public function Action() { init(); } private function init():void { Laya.loader.load("../res/zy/zy.json",Handler.create(this,onLoadedSource),null,Loader.ATLAS); } private function onLoadedSource():void { roleAni = new Animation(); playActions(); }   2、你打包图集的时候,.json文件的pre...

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

188. 一个图集动画由多张图集组成这种图集动画怎么加载播放? [ 56%]

...Monica • 2017-10-13 10:44 @hypo_chen:那就加载多个json文件...Laya.loader.load第一个参数是数组类型的

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

189. 播放swf动画的时候,会出现 Cannot read property 'dir' of undefined崩溃 [ 55%]

...ir' of undefined崩溃 这个是出错信息 this.basePath=this._atlasPath?Loader.getAtlas(this._atlasPath).dir:this._url.split(".swf")[0]+"/image/";    我们采用的播放模式是this.effectMovieClip.load(effectsPath,true);  effectsPath 是路径 我们的swf 文件在附件中, 附件 : --...

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

190. 特效播放问题 [ 55%]

...资源预加载之后,使用之前加上: var texture:Texture = Laya.loader.getRes(e.url); texture.bitmap.enableMerageInAtlas = false; rgxianzhan • 2017-10-23 19:39 能在加载的时候设置大图合集么,使用的地方真少 Monica • 2017-10-23 20:01 @rgxianzhan:关闭大图合...

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