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

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

1. GameConfig 文件 的init 什么情况会使用reg注册 [ 100%]

GameConfig 文件 的init 什么情况会使用reg注册 2019-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 faith_leaf 赞同来自: 不明白哪里出了问题   2019-03-13 0 0 分享 微博 QZONE 微信...

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

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

[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

3. 请问2.0 删除脚本后再编译, GameConfig.ts 会自动恢复import和 reg, 然后报找不到该脚本的模块的错误 该如何处理 谢谢 [ 96%]

...请问2.0 删除脚本后再编译, GameConfig.ts 会自动恢复import和 reg, 然后报找不到该脚本的模块的错误 该如何处理 谢谢 如题 谢谢 2018-09-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

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

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

5. laya.utils.Base64Tool_API3.0 [ 91%]

...64Tool Class Base64Tool Hierarchy Base64Tool Index Properties chars lookup reg reghead Methods decode encode init isBase64String Properties Static chars chars: string = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" Defined in laya/utils/Base64Tool.ts:3 Static lookup lookup: Uint...

来源: Laya3.0_api 发布时间: 20231115

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

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

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

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

8. BoxCollider 调用destroy报错 [ 85%]

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

9. 怎么只用RegExp进行正则校验 [ 82%]

怎么只用RegExp进行正则校验 private static function RegExpFunc(reg:RegExp,str:String):Boolean { var p:RegExp=reg; return p.test(str) ; } 我这样子写,直接传进去,运行报错 2017-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

10. AS语言 怎么调用MD5加密? [ 80%]

...言怎么调用MD5加密?还有正则判断? private static function RegExpFunc(reg:RegExp,str:String):Boolean { var p:RegExp=reg; return p.test(str) ; } 2017-03-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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