大约有 410 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0033 秒)
...本能调用layaIDE的相关功能吗? Laya 2.7.0beta Scene与脚本的onAwake()与onEnable()调用时机存在问题 laya2.0调用scene.gc方法,再次加载同一份资源时候,会导致gpu内存不断增加! 问题状态 最新活动: 2020-05-19 19:01 浏览: 2573 关注: 1 人
来源: Laya_社区 发布时间: 20200509
...的背景色不应该是透明的吗?用IDE创建的遮罩显示正常 onAwake(): void { let mask: Laya.Sprite = new Laya.Sprite(); Laya.stage.addChild(mask); mask.graphics.drawCircle(80,50,40,"#ffffff"); let sprite: Laya.Sprite = new Laya.Sprite(); Laya.stage.addChild(sprite); sprite.loadImage("m...
来源: Laya_社区 发布时间: 20211002
...时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(){ this.meshsp = this.owner as Laya.MeshSprite3D(); } //物体必须拥有碰撞组件(Collider) //当被鼠标点击 onMouseDown(e){ //console.log("点击到了我box",owner.name); //从父容器销毁我自己 thi...
来源: Laya2.0_文档 发布时间: 20210715
... super(); fruit.Fru=this; } onAwake() { let rig:Laya.RigidBody=this.owner.getComponent(Laya.RigidBody); var lala=UIcontrol.FUI.bg.getComponent(Laya.RigidBody); this.rope=this.owner.getComponent(Laya.RopeJoint); ...
来源: Laya_社区 发布时间: 20220413
...lass VictoryScene extends VictorySceneUI { constructor() { super(); } onAwake(){ let btnOnce=this.getChildByName("btnOnce"); btnOnce.on(Laya.Event.CLICK,this,this.onClick); } onClick(e){ this.removeSelf(); let gameScene=new GameScene(); Laya.stage.addChild(gameScene); } } 求大佬教学 2019-0...
来源: Laya_社区 发布时间: 20190903
...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.ani.source = "resources/role.atlas"; //接收动画数据源为图集 this.ani.autoPlay = true; //开启自动播放 this.ani.wrapMode = 0; //播放模式为正序播放模式(POSITIVE) this.ani.inter...
来源: Laya3.0_文档 发布时间: 20251010
连续读取多个本地json文件 onAwake(): void { console.log("读数据"); Laya.loader.load("Json/shopLevel.json", Laya.Handler.create(this, this.shopJsonLoaded), null, Laya.Loader.JSON); Laya.loader.load("Json/menu.json", Laya.Handler.create(this, this.menuJsonLoaded), null, Laya.Loader.JSON);...
来源: Laya_社区 发布时间: 20220819
...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce Constructors constructor new Node(): Node Defined in ...
来源: Laya3.0_api 发布时间: 20231115
...均已创建完毕,此方法只执行一次 */ override public function onAwake():void{ //获取脚本的拥有者 meshsp = this.owner as MeshSprite3D; } //物体必须拥有碰撞组件(Collider) //当被鼠标点击 override public function onMouseDown(e:Event):void{ //trace("点击到了我...
来源: Laya2.0_文档 发布时间: 20210715
...录是存在哪儿,如何管理编辑? Laya 2.7.0beta Scene与脚本的onAwake()与onEnable()调用时机存在问题 在编辑器里面运行是没有问题的,但是发布打包之后存在资源加载不了 需要用SoundChannel的play()方法,报错说不存在play()方法? IDE提示...
来源: Laya_社区 发布时间: 20190315