大约有 488 项符合查询结果, 库内数据总量为 30,934 项。 (搜索耗时: 0.0038 秒)
...时候报错: 具体是layaUI.max.all.js里的这一行:effect01UI.__super.call(this); TypeError: Cannot read property 'call' of undefined 请问我应该怎么实例化 effectAnimation.efc 这种模板? 2018-01-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20180122
... { type : Laya.TextInput } ) public txtin: Laya.TextInput; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 thi...
来源: Laya3.0_文档 发布时间: 20240910
...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
...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