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

大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0047 秒)

941. tesT中是一个按钮,在这按钮中加入怎么样的函数,才能调用SAMPLE中的MOVEleft这个函数? [ 53%]

...与内容相关的链接 提交 1 个回复 cuixueying 赞同来自:   把private function moveleft改为public function moveleft,在Sample中实例化moveleft所在的类,就可以通过实例去调用了。   建议你网上找下AS3的属性和函数相互调用的相关教程,学习下...

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

942. 怎么让laya h5自动适应等比缩放? [ 53%]

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

943. LayaAir IDE有没有像Flash Builder里的代码模板的功能? [ 53%]

... 输入方法名myFunction()然后ctrl+1 可以自动补全方法的定义private myFunction():void { } 2017-10-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 赞同来自: 你可以去VSC...

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

944. 关于官方技术文档中《微信飞机大战》实战开发中监听界面是否关闭 [ 53%]

...面是否关闭 this.once(Event.CLOSE,this,onClose); /** * 界面关闭 */ private function onClose():void { console.log("GameStart界面关闭!"); //从舞台移除自己 this.removeSelf(); //只加载一次,因此直接消毁自己 this.destroy(); }onClose方法并没走到,控制台没输...

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

945. Laya.Resource.destroyUnusedResources导致界面变形 [ 53%]

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

946. 使用3D UI · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

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

947. 预制体模块 · LayaAir3文档 · LAYABOX [ 53%]

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

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

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

949. 我已经登录了账号,还是无法创建LayaCloud项目 [ 53%]

...读的 改成可写的 151*****257 • 2019-05-10 11:37 @bpmf_d:这里是private目录 ,权限修改提示operation not permitted! 还有其他的方法吗? bpmf_d • 2019-05-10 11:40 这是环境问题 不是引擎的问题 换目录试试呗

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

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

...闪退了。怎么清空缓存再加载,使内存保持稳定。     private receiveHandler(msg: any = null): void     {        try {           this.MyImage.skin = "data:image/jpeg;base64," +msg;        } catch (error) {                }       } 附件 : --> 2025-11-15 ...

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