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

大约有 458 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0050 秒)

321. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 60%]

... laya 引擎是2.5的      Laya.loader.load(cg_url,Laya.Handler.create(this,()=>{             let tur:Laya.Texture = Laya.loader.getRes(cg_url);             if(tur)img_cg.graphics.drawImage(tur)         }),null,Laya.Loader.IMAGE);    这段代码, 当 cg_...

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

322. 播放模型动画的时候出问题了 [ 60%]

...时候出问题了   //给男角色模型设定贴图动画 var manAni = this.roleMan.addComponent(SkinAnimations); manAni.url ="3d/man/hero.ani"; manAni.player.play();   附件 : --> 2019-02-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

323. 报错,这不是个构造函数 "StartPage is not a constructor" [ 60%]

... StartPage=(function(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample = (function(){ (function(){ Laya.init(667,375); Laya.stage.bgColor = "#ffcccc"; Laya.loader.load("res/atla...

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

324. 移除ANI [ 60%]

... 但是 动画依然存在   private backindex():void{         this.removeSelf();        Laya.Scene.open("Gameindex.scene");   }       2019-12-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 ...

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

325. 微信小游戏播放音效无法连续反复播放 [ 60%]

...nd._musicAudio;       }else {     /*  if(MiniSound._audioCache[this.readyUrl]){         tSound=MiniSound._audioCache[this.readyUrl]._sound;         }else{*/         tSound=MiniSound._createSound();     //  } 改成这样就OK了 2018-08-20 0 0 分享 微博 ...

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

326. Laya.loader.create()真机不能加载3D资源,加载图片和音频可以,打开调试也没问题 [ 60%]

...载进度         Laya.loader.create(res,null,Laya.Handler.create(this,this.onProgress,null,false)); 2020-11-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 1605953523用户 赞同来自: 我把资源放...

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

327. 怎么获取Skeleton下模型的大小 [ 59%]

...邀请: 与内容相关的链接 提交 1 个回复 赵滔 赞同来自: this._skeleon.play(0); //需要设置一次先才能获取大小   var boundsW: number = skeleon.getBounds().width; var boundsH: number = skeleon.getBounds().height; 2019-06-17 0 0 分享 微博 QZONE 微信 为什么被折叠...

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

328. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 59%]

...码大致如下: Laya.loader.load('player/player.json',Laya.Handler.create(this, this.onLoaded),null); ----onComplate: Laya.Animation.createFrames(['player-left.png'], "walk-left"); 2016-06-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

329. [0]Clip播放丢帧以及停止动画过前的问题 [ 59%]

...播放时多调用一次_index++导致跳过第二帧。 2.已经调用过this.stop()后,又更新了this.index。导致用户在监听停止的地方修改索引会不生效。 附件 : --> 附件.docx 2021-10-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

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

...ngel.level; // 构造 function IsLand() { // 初始化 IsLand.__super.call(this); // 名字 this.name = "gemini"; this.init(); } // 注册类 IsLand Laya.class(IsLand,"IsLand",laya.display.Sprite); // 原型 var _proto = IsLand.prototype; // 初始化 _proto.init = function(){ // 球体 this.ball = ...

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