大约有 4,103 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0067 秒)
Laya_社区(3324) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...直展示总是有些斜。 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
... ]; Laya.loader.load(resArr,Handler.create(this,this.onLoaded)); } private function onLoaded():void{ //显示界面 var gameView:GameView = new GameView(); Laya.stag...
来源: Laya_社区 发布时间: 20180106
...邀请: 与内容相关的链接 提交 4 个回复 WLN123 赞同来自: this.renderNode.getCell(i).disabled = true; 这句代码不知道哪里出错了 2018-01-15 0 0 分享 微博 QZONE 微信 WLN123 赞同来自: 求助 2018-01-16 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自...
来源: Laya_社区 发布时间: 20180115
... _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
...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
...放音乐"); 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
2.3微信截图分享问题 let textur: Laya.Texture = this.cut.drawToTexture(500, 500, 0, 0); this.show.texture = textur此代码可以获得一个组件的纹理。并且可以正常展现到另一个组件上去。 现在有个问题。如果用微信分享怎么搞?微信那边需要...
来源: Laya_社区 发布时间: 20191010
...一边滑动一边施放技能 写法如下: 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
...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
...报错 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