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

大约有 486 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0037 秒)

221. 输入文本组件 · LayaAir3.0文档 · LAYABOX [ 55%]

... { 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_文档 发布时间: 20230629

222. 关于实例化 动画特效.efc 文件的问题 [ 55%]

...时候报错: 具体是layaUI.max.all.js里的这一行:effect01UI.__super.call(this); TypeError: Cannot read property 'call' of undefined   请问我应该怎么实例化 effectAnimation.efc 这种模板?   2018-01-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

223. [分享]Dialog 点击边缘不关闭的 Demo示例 [ 54%]

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

224. RopeJoint代码动态创建 无法设置otherbody [ 54%]

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

225. dialog里面的内容怎么不能添加到舞台 [ 54%]

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

226. 3D场景跳转到2D场景问题 [ 54%]

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

227. 刚接触laya的一系列问题 [ 54%]

...延迟两帧以后设置就可以了,用不了button,只能用this和super

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

228. loadLib("libs/laya.device.js"); native上会随机宕 [ 54%]

...detroyChildren===void 0)&& (detroyChildren=true);         _super.prototype.destroy.call(this,detroyChildren);         // native会崩溃         // this.videoElement.removeEventListener("abort",Video.onAbort);         // this.videoElement.removeEventListener("...

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

229. 实例化 laya.ani.bone.Skeleton 对象报错 [ 54%]

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

230. 自己创建的box作为tab,为啥没有点击事件啊? [ 54%]

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