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

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

2341. 使用3D UI · LayaAir3.4 · 引擎文档 · LAYABOX [ 51%]

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

2342. 请问我看错了吗??文档问题 [ 51%]

...吧。 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

2343. 多线程worker(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 51%]

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

2344. 我自己绘制的矩形如何以自身中心点旋转不能实现啊 [ 51%]

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

2345. 场景天空(ActionScript-3D基础(AS3)-LayaAir3D之场景渲染配置) [ 51%]

...yBox/skyBox1/SkyBox.lmat", Handler.create(null, function(mat:BaseMaterial):void { var skyRenderer:SkyRenderer = camera.skyRenderer; skyRenderer.mesh = SkyBox.instance; skyRenderer.material = mat; })); ``` 效果如下(图3): ![](img/3.png)(图3) **使用Unity的全景天空盒** 1.在Unity...

来源: Laya2.0_文档 发布时间: 20210715

2346. Animation如何获取图集单帧实际宽高 [ 51%]

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

2347. 曲线遮罩层无法正确渲染 [ 51%]

...urves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 点击代码编辑模器 就提示无法打开代码编辑器 请配置 这个怎么解决? dialog 自定义关闭效果,效果执行完,弹窗无法关闭 关于发布oppo、vivo快游戏...

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

2348. [LayaNative3]通过websocket实时获取base64字符串更新skin,内存一直在爆增状态 [ 51%]

...,使内存保持稳定。     private receiveHandler(msg: any = null): void     {        try {           this.MyImage.skin = "data:image/jpeg;base64," +msg;        } catch (error) {                }       } 附件 : --> 2025-11-15 添加评论 免费帖 --> 分享 微...

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

2349. 微信小游戏分包实战(TypeScript-小游戏适配文档-微信小游戏) [ 51%]

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

2350. skeleton的_onAniSoundStoped清除的时候有时会报undefined错误 [ 51%]

...删掉所有的声音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