大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0082 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...Main"; @regClass() export class BloodBar extends BloodBarBase { onAwake(): void { this.bar.value = 1; this.value.visible = false; Laya.stage.on(Laya.Event.CLICK, this, this.onHurt); } onHurt(): void { this.bar.value = this.bar.value - 0.9; this.value.y = 35; this.value.visible = true; Main.instance....
来源: Laya3.0_文档 发布时间: 20251010
...吧。 public static function destroyUnusedResources(group:String = null):void { var res:Resource; if (group) { var resouList:Vector.<Resource> = _groupResourcesMap[group]; if (resouList) { var tempResouList:Vector.<Resource> = resouList.slice(); for (var i:int, n:int = tempResouList.len...
来源: Laya_社区 发布时间: 20190126
...er.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:TestView = new TestView(); Laya.stage.addChild(testView); } } } ``` `WorkerLoader.workerPath = "libs/worker.js";`设置worker.js的路径,这个worker.js是Laya官方提供的,我...
来源: Laya2.0_文档 发布时间: 20210715
...(1,this,onLoopRotation,[sp]); } private function onLoopRotation(sp:Sprite):void { sp.rotation++; } } } 2017-09-05 0 0 分享 微博 QZONE 微信 pal 赞同来自: 这个方法不行啊 还是因为升级laya2.0 之后不能用的? 2018-10-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...
来源: Laya_社区 发布时间: 20170830
...yBox/skyBox1/SkyBox.lmat", Handler.create(null, function(mat:BaseMaterial):void { var skyRenderer:SkyRenderer = camera.skyRenderer; skyRenderer.mesh = SkyBox.instance; skyRenderer.material = mat; })); ``` 效果如下(图3): (图3) **使用Unity的全景天空盒** 1.在Unity...
来源: Laya2.0_文档 发布时间: 20210715
...las/hero_"+_model+".atlas",Handler.create(this,onLoad)); function onLoad():void { this.addChild(ani); var bounds:Rectangle = ani.getBounds(); Control.showLog(bounds.toString()); } 附件 : --> 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20180307
...urves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 点击代码编辑模器 就提示无法打开代码编辑器 请配置 这个怎么解决? dialog 自定义关闭效果,效果执行完,弹窗无法关闭 关于发布oppo、vivo快游戏...
来源: Laya_社区 发布时间: 20180702
...,使内存保持稳定。 private receiveHandler(msg: any = null): void { try { this.MyImage.skin = "data:image/jpeg;base64," +msg; } catch (error) { } } 附件 : --> 2025-11-15 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20251115
...tnA.on(Laya.Event.CLICK, this, this.showB); } //显示B页 private showB():void { this.GameMain.showUI(this.ui.bUI,this.GameMain.newUI) //监听按钮btnB的点击事件,触发后处理 this.GameMain.newUI.btnB.on(Laya.Event.CLICK, this, this.showA); } //显示A页 private showA():void { this.Game...
来源: Laya2.0_文档 发布时间: 20210715
...删掉所有的声音channel */ private _onAniSoundStoped(force: boolean): void { for (let len = this._soundChannelArr.length, i = 0; i < len; i++) { let channel = this._soundChannelArr[i]; if (channel.isStopped || force) { !channel.isStopped && channel.stop(); this._soundChannelArr.splic...
来源: Laya_社区 发布时间: 20230727