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

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

1. [LayaAir 2.0] laya2.0.1 beta F11编译layaMaxUI.ts REG is undefined [ 100%]

[LayaAir 2.0] laya2.0.1 beta F11编译layaMaxUI.ts REG is undefined var REG: Function = Laya.ClassUtils.regClass; 这行代码f11不会加上, f12可以 2019-04-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 b...

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

2. LayaAir 2.0 TS版编译出错GameConfig跟创建项目时生成的内容不一致了 [ 84%]

... static exportSceneToJson:boolean=true; constructor(){} static init(){ var reg: Function = Laya.ClassUtils.regClass; reg("script/GameUI.ts",GameUI); reg("script/GameControl.ts",GameControl); reg("script/Bullet.ts",Bullet); reg("script/DropBox.ts",DropBox); } } GameConfig.init();编译之后变成:...

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

3. laya里面TS的正则表达式跟js不同的 [ 81%]

...不行   TS正解: 验证身份证号(15位或18位数字): var reg:RegExp = new RegExp("^[0-9]{15,18}$");             if(reg.test(str)){                 console.log("ok");             }   验证手机号码  var reg:RegExp = new RegExp("^1[0-9]{10}$"); 2017-06-09 添...

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

4. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 81%]

...rt View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; var REG: Function = Laya.ClassUtils.regClass; export module ui.test { export class TestSceneUI extends Laya.Scene {         public scoreLbl:Laya.Label;         public tipLbll:Laya.Label; constructor(){ super()} cr...

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

5. BoxCollider 调用destroy报错 [ 80%]

....friction = 0; addComponentIntance(boxColl); kura • 2018-12-10 16:57 var reg:Laya.RigidBody=.getComponent(Laya.RigidBody)as Laya.RigidBody; if(reg.isSingleton){ reg.destroy(); } 你试下这样,用isSingleton判断下先,如果解决了麻烦回复哦 kura • 2018-12-10 17:00 看了下你的...

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

6. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 71%]

..., Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报错 Main.js:61 Uncaught ReferenceError: ui is not defined 之前有人提过这个问题,但是一...

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

7. 2.0 Beta3版本中,runtime脚本的的问题 [ 70%]

...static exportSceneToJson:boolean=false; constructor(){} static init(){ var reg: Function = Laya.ClassUtils.regClass; reg("game/ImageRunTime.ts",ImageRunTime); } } GameConfig.init(); 2018-10-15 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: https://ldc2.layabox.com/doc/?nav=zh-as-2-4-1  照...

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

8. layaMaxUI.ts的自动生成代码bug [ 69%]

... from '../SceneBase' import View=Laya.View; import Dialog=Laya.Dialog; var REG: Function = Laya.ClassUtils.regClass; export module ui { export class MainSceneUI extends Laya.SceneBase { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("MainScene"); } } REG("ui.M...

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

9. Maximum call stack size exceeded [ 64%]

...             //注册Script或者Runtime引用             let reg = Laya.ClassUtils.regClass;     reg("script/GameMain.js",GameMain);         }     }     GameConfig.width = 640;     GameConfig.height = 1136;     GameConfig.scaleMode ="fixedwidth";     GameConfig.screenMo...

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

10. 分享:关于自定义场景继承的实现 [ 64%]

...ase} from "../script/base/BaseScene"; import BaseScene=base.BaseScene; var REG: Function = Laya.ClassUtils.regClass; export module ui { export class CustomSceneUI extends BaseScene { public txt_hello:Laya.Label; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("...

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