大约有 492 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
...se(type?:string, showEffect?:boolean):void{ if(type === "side"){ return; } super.close(type, showEffect) } 刚下载了楼上的zip。方法生效了。表示感谢。 把代码贴出来。免得别人再去下载了。 2018-11-29 1 0 分享 微博 QZONE 微信 callback 赞同来自: Laya.UIConfig...
来源: Laya_社区 发布时间: 20180911
...:fruit; public rope:Laya.RopeJoint constructor() { super(); fruit.Fru=this; } onAwake() { let rig:Laya.RigidBody=this.owner.getComponent(Laya.RigidBody); var lala=UIcontrol.FUI.bg.getComponent(Laya.RigidBody); ...
来源: Laya_社区 发布时间: 20220413
...txt} // console.log(); } } console.log('+++++++++++++++++++') console.log(_super); console.log(fooddata); self.foodList.dataSource = fooddata; console.log(self.foodList.dataSource); console.log(self.foodList._array[0].food); //实例化角色容器 var foodBox = new Laya.Sprite(); //添加到舞台...
来源: Laya_社区 发布时间: 20181220
...port default class 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); } } 求大...
来源: Laya_社区 发布时间: 20190903
...延迟两帧以后设置就可以了,用不了button,只能用this和super;
来源: Laya_社区 发布时间: 20180905
...tion }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.ani.source = "resources/role.atlas"; //接收动画数据源为图集 this.ani.autoPlay =...
来源: Laya3.0_文档 发布时间: 20251010
...detroyChildren===void 0)&& (detroyChildren=true); _super.prototype.destroy.call(this,detroyChildren); // native会崩溃 // this.videoElement.removeEventListener("abort",Video.onAbort); // this.videoElement.removeEventListener("...
来源: Laya_社区 发布时间: 20181207
...报错 export default class showSpine extends Laya.Script{ constructor() { super(); //创建一个Skeleton对象 //Laya let skeleton: laya.ani.bone.Skeleton = new laya.ani.bone.Skeleton(); } } 实例化报错 为啥 2018-09-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20180928
...Class(); Laya.stage.addChild(UI); } function MyBoot() { MyBoot.super(this); this.MyTab.selectHandler = new Laya.Handler(this, onSelect, null, false);//设置 tab 的选择项发生改变时执行的处理器。 console.log("A123"); function onSelect(index) { ...
来源: Laya_社区 发布时间: 20160722
... (destroyChild===void 0)&& (destroyChild=true); this._idMap=null; _super.prototype.destroy.call(this,destroyChild); var list=laya.display.Scene.unDestroyedScenes; for (var i=0,n=list.length;i < n;i++){ if (list[i]===this){ list.splice(i,1); return; } } }这里改动了同一个数组,...
来源: Laya_社区 发布时间: 20181128