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

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

2301. laya2.0 runtime问题 [ 69%]

...人 Leon • 2018-10-10 15:36 感谢,可是var不写东西,怎么通过this.xx调用? hj • 2018-10-10 15:38 你看一下我给你改的那个BtnAni.ts脚本,拖到runtime上就可以直接this.xx Leon • 2018-10-10 15:53 @hj:额我意思是,要获取test_1.scene页面下的某个组件...

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

2302. IphoneX适配 [ 69%]

...Ratio, Browser.clientHeight * Browser.pixelRatio, WebGL); }else{ Laya.init(this.SCENE_WIDTH, this.SCENE_HEIGHT, WebGL); } 苹果X适配 2018-05-22 1 1 分享 微博 QZONE 微信 w1114367261 赞同来自:  目前还没有针对x的手机做针对性适配,目前适配方式需要与ide中的父物...

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

2303. Uncaught TypeError: Game.super is not a function [ 69%]

... not a function var Game = (function(_super){ function Game() { Game.super(this); } Laya.ClassUtils(Game,"Game",_super) return Game; })(ui.GameUI) 2017-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica -...

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

2304. 图集资源clearRes清除之后下次再用到load时加载失败 [ 69%]

...aya.loader.load([{ url:url, type: Laya.Loader.ATLAS }],Laya.Handler.create(this,this.Loa,null)); } private Loa():void { console.log("在又有意义有意义有意义有意义有意义有意义有意义有意义"); } public ClearImg(url:string):void { Laya.Loader.clearRes(url); } 2018-01-09 添加...

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

2305. mc.rotation=0的问题 [ 69%]

...直展示总是有些斜。   mc.rotation=30; Laya.timer.frameLoop(1,this,onLoop); private function onLoop():void {      mc.rotation-=5;      if(mc.rotation<=0)      {          Laya.timer.clear(this,onLoop);          mc.rotation=0;       }   }   所以,mc.rotation...

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

2306. 按照打地鼠教程来无法正常加载资源 [ 69%]

...    ];             Laya.loader.load(resArr,Handler.create(this,this.onLoaded));         }         private function onLoaded():void{             //显示界面             var gameView:GameView = new GameView();             Laya.stag...

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

2307. list下面的box的disable设置无效 [ 69%]

...邀请: 与内容相关的链接 提交 4 个回复 WLN123 赞同来自: this.renderNode.getCell(i).disabled = true; 这句代码不知道哪里出错了 2018-01-15 0 0 分享 微博 QZONE 微信 WLN123 赞同来自: 求助 2018-01-16 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自...

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

2308. 附加脚本的使用问题 [ 69%]

... _owner: any;     public set owner(o: laya.display.Sprite) {         this._owner = o;         console.log("设置owner");     }     public get owner(): laya.display.Sprite {         return this._owner;     } } 新建脚本类如上。运行项目时,构造方法中的log被输...

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

2309. [LayaAirIDE3]请教一下3.3中新的tween怎么动画结束后传参给回调的方法 [ 69%]

...ween.create(target).to("x", 1).duration(100).userData({ prop: "xx" }).then(this.onComplete, this);   private onComplete(tweener: Laya.ITweener): void { console.log(tweener.userData); } 2025-09-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

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

2310. Laya 中用什么事件可以检测声音是否播放结束? [ 69%]

...放音乐"); SoundManager.playMusic("res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } private function onPlaySound(e:Event=null):void { trace("播放音效"); SoundManager.playSound("res/sounds/btn.mp3", 1, new Handler(this, onComplete)); }播放声音或音效的第3个参数就是播放...

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