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

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

2301. 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

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

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

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

2303. 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

2304. 附加脚本的使用问题 [ 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

2305. [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

2306. 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

2307. 2.3微信截图分享问题 [ 69%]

2.3微信截图分享问题 let textur: Laya.Texture = this.cut.drawToTexture(500, 500, 0, 0);   this.show.texture = textur此代码可以获得一个组件的纹理。并且可以正常展现到另一个组件上去。   现在有个问题。如果用微信分享怎么搞?微信那边需要...

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

2308. 安卓和iPhone的触控差异 [ 69%]

...一边滑动一边施放技能 写法如下: stage.on(Event.MOUSE_DOWN, this, onMouseDown); private function onMouseDown(e:Event = null):void { var touches:Array = e.touches; if (touches) { moveX = touches[0].stageX stage.on(Event.MOUSE_MOVE, this, onMouseMove) } } private function onMouseMove(e:E...

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

2309. [LayaAirIDE3]3.3.1 UI点击区域异常,mouseThrough属性失效 [ 69%]

...cts without image resources), specifies whether the mouse events penetrate this object's collision detection. `true` means the object is penetrable, `false` means it is not penetrable. * When penetrable, the engine will no longer detect this object and will recursively check its child objects until ...

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

2310. getRes加载场景报错 [ 69%]

...报错 Laya.loader.load("LayaScene_04_laya/04_laya.ls",Laya.Handler.create(this,this.on3DComplete)); 在load3D资源后分别用两种方法实例化场景报错   //1.实例化场景 that.scene = Laya.loader.getRes("LayaScene_04_laya/04_laya.ls") as Laya.Scene3D; Laya.stage.addChild(that.scene); /...

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