大约有 63 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0044 秒)
...的,有如下场景: class PageList extends laya.ui.List { constructor() { super(); } protected initialize():void { super.initialize(); this.itemRender = PageRender;//错误,因为_cells...
来源: Laya_社区 发布时间: 20180810
... // src/MachineCtrl.ts var MachineCtrl = class extends CtrlBase { constructor() { super(); } }; __name(MachineCtrl, "MachineCtrl"); // src/funcccccc.ts var funzzzzz = class { constructor() { } static run(callBack, caller, time) { new M...
来源: Laya_社区 发布时间: 20230608
...null,为什么会出现为null的情况? 代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=new MapManager...
来源: Laya_社区 发布时间: 20171124
...? 子域所有代码 (function () { 'use strict'; class GameConfig { constructor() { } static init() { var reg = Laya.ClassUtils.regClass; } } GameConfig.width = 640; GameConfig.height = 1136; GameConfig.scaleMode = "fixedwidth"; GameConfig.screenMode = "none"; GameConfig.alignV = "top"; GameCon...
来源: Laya_社区 发布时间: 20200104
...) { (b.hasOwnProperty(p)) && (d[p] = b[p]); } function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var BackGround = (function() { __extends(Class, Laya.Sprite); function Class() { Laya.Sprite.call(this); this.img = [...
来源: Laya_社区 发布时间: 20170619
... property 'on' fof undefined class GameLogin extends ui.login.login_bgUI { constructor() { super(); this.btn_register.on("click", this, this.ToRegisterPage); } ToRegisterPage() : void { this.loadScene("login/register_page"); } } //调用on的时候 直接会报Cannot read property 'on' of undefin...
来源: Laya_社区 发布时间: 20181207
...el":"label"},"compId":3}],"loadList":["comp/button.png"],"loadList3D":[]}; constructor(){ super()} createChildren():void { super.createChildren(); this.createView(GameSceneuiUI.uiView); } } REG("ui.GameSceneuiUI",GameSceneuiUI); export class GameViewUI extends Laya.View { public static uiView:any ={...
来源: Laya_社区 发布时间: 20200228
... 无法实例class PhysicsCollider extends PhysicsTriggerComponent { constructor(collisionGroup = Physics3DUtils.COLLISIONFILTERGROUP_DEFAULTFILTER, canCollideWith = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER) { super(collisionGroup, canCollideWith); this._enableProc...
来源: Laya_社区 发布时间: 20200505
...mpId":3}],"loadList":["comp/button.png"],"loadList3D":[]}; constructor(){ super()} createChildren():void { super.createChildren(); this.createView(GameSceneuiUI.uiView); } } REG("ui.Game...
来源: Laya_社区 发布时间: 20200228
....Skeleton 对象报错 export default class showSpine extends Laya.Script{ constructor() { super(); //创建一个Skeleton对象 //Laya let skeleton: laya.ani.bone.Skeleton = new laya.ani.bone.Skeleton(); } } 实例化报错 为啥 2018-09-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20180928