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

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

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

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

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

122. 问一下Laya.ClassUtils.getInstance()怎么使用的,为啥我 直接传入一个.'类名' 竟然提示错误获取不到这个类 [ 54%]

...x8087ol 赞同来自: 用之前注册下,用类名绑定类Laya.ClassUtils.regClass('MainPage', MainPage); 2018-01-22 0 1 分享 微博 QZONE 微信 jy02728471 赞同来自: 没有AS3的getDefinitionByName这样的方法吗?不需要提前注册的 2018-03-19 0 0 分享 微博 QZONE 微信 为什么...

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

123. Laya2.2问题,有没有遇到的? [ 54%]

...s GameConfig { constructor() { } static init() { var reg = Laya.ClassUtils.regClass; } } GameConfig.width = 640; GameConfig.height = 1136; GameConfig.scaleMode = "fixedwidth"; GameConfig.screenMode = "none"; GameConfig.alignV = "top"; GameConfig.alignH = "left"; GameConfig.startScene = ""; GameConfi...

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

124. 2D网格渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...,加入下述代码,实现一个2D网格渲染器的效果: const { regClass, property } = Laya; @regClass() export class Mesh2DRender extends Laya.Script { @property({type: Laya.Sprite}) private layaMonkey: Laya.Sprite; //组件被启用后执行,例如节点被添加到舞台后 onEnable()...

来源: Laya3.0_文档 发布时间: 20251120

125. TypeScript项目,src目录下有个ClicpView.ts类继承自ui.ClipUI,请问如何通过ClassUtils在知道类名的情况下得到这个类对象呢 [ 53%]

...来自: 如果要使用映射,你需要先注册下,譬如 ClassUtils.regClass("sp",Sprite); trace(ClassUtils.getClass("sp")); 2017-08-21 0 2 分享 微博 QZONE 微信 辉先生 赞同来自: trace(ClassUtils.getClass("sp")); 您好,请问,这句是啥意思啊?没懂 - - 2019-06-19 0 0 ...

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

126. 飞机大战出现的问题注册了类New的时候报错未定义 [ 53%]

...容器位置 Laya.timer.frameLoop(1,this,this.onLoop); } //注册类 Laya.regClass(BackGround,"BackGround",_super); var _proto = BackGround.prototype; _proto.onLoop = function(){ //背景容器每帧向下移动一像素 this.y +=1; //如果背景图到了下面不可见的位置,立即调整位...

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

127. [LayaAirIDE 2.0]Particle2D无法直接拖拽到场景中使用,望解决 [ 52%]

...复 2019-11-28 1 0 分享 微博 QZONE 微信 路在前方 赞同来自: regClass("laya.particle.Particle2D",Particle2D);后运行没问题了,但是拖过粒子的界面,在关闭ide后重新打开会卡死 2019-11-28 0 0 分享 微博 QZONE 微信 1709602657用户 赞同来自: 估计都没人...

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

128. layaMaxUI.ts的自动生成代码bug [ 52%]

...=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.MainSceneUI",MainSceneUI); } 期...

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

129. 升级到3.0-beta6无法选择资源了 [ 52%]

...置,点击选择弹出框显示None,也无法拖放! 代码如下: @regClass() export class NewScript extends Laya.Script {     //declare owner : Laya.Sprite3D;      @property(String)     public text: string = "";      @property(Laya.Image)     public image: Laya.Image = null;   ...

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

130. runtime运行报错! [ 51%]

...   var compClass=runtime ? (View.viewClassMap[runtime] || ClassUtils.getRegClass(runtime)):View.uiClassMap[json.type];             return compClass ? new compClass():null;         }         View.regComponent=function(key,compClass){             View.viewClassMap[key]=...

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