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

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

1. UI界面发布后的layaUI.max.all.ts文件里的函数认识 [ 100%]

UI界面发布后的layaUI.max.all.ts文件里的函数认识 constructor(){ super()}和 createChildren():void { super.createChildren(); this.createView(ui.login.HeadUI.uiView); } 是先执行constructor()再执行createChildren()吗?constructor()相当于构造函数,createChildren()是构造...

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

2. 小白求助,为何这个工程的 onOpened 没有执行 [ 94%]

...t MyDialogUI = ui.MyDialogUI;  export class MyDialog extends MyDialogUI { constructor() { super(); }  onOpened(param: any): void { console.log("mylog------" ); } } 附件 : --> 示例工程.zip 2019-09-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

3. layaair 2.0 在构造函数中获取基类的组件,报错说定义。 [ 91%]

...说定义。 export default class GameLoading extends ui.gamoloadingUI{ constructor(){ super(); this.PB.changeHandler = new Laya.Handler(this,this.onChange); } } 基类中明确有PB变量,是进度条。此处构造函数中设置事件报错,说PB定义,但是放在onEnable中是正常...

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

4. layaair2.0 js的程序入口在哪?跟以前的不一样了 。 [ 82%]

...的不一样了 。 很久没用了,都2.0了,入口是哪个main类的constructor里吗?官网新手手册还是老版的。 2018-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Xq 赞同来自: M...

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

5. dialog的popup方法不会关闭其他弹窗 [ 81%]

...代码: class LoginView extends ui.loginUI { normalDialog: NormalDialog; constructor() { super();  this.btn_signin.on(Laya.Event.CLICK, null, () => { this.showDialog("登录成功") }); this.btn_register.on(Laya.Event.CLICK, null, () => { this.showDialog("注册功能暂开放") });  }...

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

6. as3的类里定义的字段编译后会被注释 [ 73%]

...ic function Demo() { } }通过编译后会变成下面的代码class Demo{ constructor (){ //this.a=0; //this.b=null; } }这里字段a和b在编译后会被注释掉,只有初始化的时候给a和b赋值,编译后的代码才不会注释掉a和b这两个字段,我想问一下,能不能不...

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

7. ProgressBar 代码问题 [ 71%]

...er = Laya.Handler; export class Onloading extends ui.LoadingUI{        constructor(){        super();        this.loadingBar.changeHandler = new Handler(this, this.onChange); } public changeValue():void{        console.log("change");        if (this.loadingBar.value >= 1){   ...

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

8. 编译Typescript项目时卡死,通过node断点调试layaair-cmd,已定位是tsSort.js问题 [ 64%]

...c/LayaSample.ts import WebGL = Laya.WebGL; // 程序入口 class GameMain{ constructor() { Laya.init(600,400, WebGL); } static wallet:com.battlecry.idle_m.data_proto.WalletModel; } new GameMain();        然后编译就卡死         Bug调试: 经过node inspect 发现是layaair-cmd 目...

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

9. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 63%]

...e ray:Laya.Ray; /*碰撞检测信息*/ private outHitInfo:Laya.RaycastHit; constructor() { super(); this.ray = new Laya.Ray(new Laya.Vector3(0,0,0),new Laya.Vector3(0,-2,0)); this.outHitInfo = new Laya.RaycastHit(); } /*覆写3D组件方法,指3D对象加载组件时执行 *owner:此组件所属...

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

10. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 35%]

... /** 数据*/         public static DATA: string = "data";         constructor(decorate?:Decorate) {             super();             this.mDecorate = decorate || new Decorate(this);             this.pomelo = new Pomelo();             this.configuration();        ...

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