大约有 148 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0030 秒)
...F11编译layaMaxUI.ts REG is undefined var REG: Function = Laya.ClassUtils.regClass; 这行代码f11不会加上, f12可以 2019-04-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 bpmf_d 赞同来自: 感谢您...
来源: Laya_社区 发布时间: 20190411
...x8087ol 赞同来自: 用之前注册下,用类名绑定类Laya.ClassUtils.regClass('MainPage', MainPage); 2018-01-22 0 1 分享 微博 QZONE 微信 jy02728471 赞同来自: 没有AS3的getDefinitionByName这样的方法吗?不需要提前注册的 2018-03-19 0 0 分享 微博 QZONE 微信 为什么...
来源: Laya_社区 发布时间: 20180122
...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
...,加入下述代码,实现一个2D网格渲染器的效果: const { regClass, property } = Laya; @regClass() export class Mesh2DRender extends Laya.Script { @property({type: Laya.Sprite}) private layaMonkey: Laya.Sprite; //组件被启用后执行,例如节点被添加到舞台后 onEnable()...
来源: Laya3.0_文档 发布时间: 20251120
...来自: 如果要使用映射,你需要先注册下,譬如 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
...容器位置 Laya.timer.frameLoop(1,this,this.onLoop); } //注册类 Laya.regClass(BackGround,"BackGround",_super); var _proto = BackGround.prototype; _proto.onLoop = function(){ //背景容器每帧向下移动一像素 this.y +=1; //如果背景图到了下面不可见的位置,立即调整位...
来源: Laya_社区 发布时间: 20191018
...复 2019-11-28 1 0 分享 微博 QZONE 微信 路在前方 赞同来自: regClass("laya.particle.Particle2D",Particle2D);后运行没问题了,但是拖过粒子的界面,在关闭ide后重新打开会卡死 2019-11-28 0 0 分享 微博 QZONE 微信 1709602657用户 赞同来自: 估计都没人...
来源: Laya_社区 发布时间: 20191127
...=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
...置,点击选择弹出框显示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
... 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