大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0047 秒)
Laya_社区(702) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(75) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 把private function moveleft改为public function moveleft,在Sample中实例化moveleft所在的类,就可以通过实例去调用了。 建议你网上找下AS3的属性和函数相互调用的相关教程,学习下...
来源: Laya_社区 发布时间: 20161221
...StageScaleMode.NO_SCALE; stage.addEventListener(Event.RESIZE,stageResize); private function stageResize(event:Event):void { trace(stage.stageWidth) trace(stage.stageHeight) } 转换成h5后获取浏览器的宽高://[IF-JS]var fullScreenWidth = Laya.window.innerWidth; //[IF-JS]var fullScreenHeight...
来源: Laya_社区 发布时间: 20151204
... 输入方法名myFunction()然后ctrl+1 可以自动补全方法的定义private myFunction():void { } 2017-10-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 赞同来自: 你可以去VSC...
来源: Laya_社区 发布时间: 20171028
...面是否关闭 this.once(Event.CLOSE,this,onClose); /** * 界面关闭 */ private function onClose():void { console.log("GameStart界面关闭!"); //从舞台移除自己 this.removeSelf(); //只加载一次,因此直接消毁自己 this.destroy(); }onClose方法并没走到,控制台没输...
来源: Laya_社区 发布时间: 20180711
...钮2关闭界面, 按钮3执行destroyUnusedResources。 核心代码: private onBtnClick(e:Laya.Event):void { switch(e.target) { case this.btn1: Laya.Scene.open("ui/p1/Page1.scene", false); break; case this.btn2: Laya.Scene.close("ui/p1/Page1.scene"); break; case this.btn3: Laya.Resource.destro...
来源: Laya_社区 发布时间: 20190216
...uctor() { super(); Main.instance = this; } @property({type:Laya.Sprite3D}) private target: Laya.Sprite3D; @property({type:Laya.UI3D}) private ui3d: Laya.UI3D; public animator: Laya.Animator; onEnable() { // 广告牌模式 this.ui3d.billboard = true; //获得状态机 this.animator = this.target.get...
来源: Laya3.0_文档 发布时间: 20251010
....Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let label: Laya.Label = res.create(); //添加预制体Lab...
来源: Laya3.0_文档 发布时间: 20241014
...t/2); sp.pos(200,200); Laya.timer.frameLoop(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 分享 ...
来源: Laya_社区 发布时间: 20170830
...读的 改成可写的 151*****257 • 2019-05-10 11:37 @bpmf_d:这里是private目录 ,权限修改提示operation not permitted! 还有其他的方法吗? bpmf_d • 2019-05-10 11:40 这是环境问题 不是引擎的问题 换目录试试呗
来源: Laya_社区 发布时间: 20190508
...闪退了。怎么清空缓存再加载,使内存保持稳定。 private receiveHandler(msg: any = null): void { try { this.MyImage.skin = "data:image/jpeg;base64," +msg; } catch (error) { } } 附件 : --> 2025-11-15 ...
来源: Laya_社区 发布时间: 20251115