大约有 432 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0080 秒)
...o extends Sprite3D { constructor() { super(); let mesh = Sprite3D.load('resources/shuipao.lh'); this.addChild(mesh); mesh.on(Event.HIERARCHY_LOADED, this, this.OnHierarchyLoaded); ...
来源: Laya_社区 发布时间: 20170608
...GameStart extends ui.GameStartUI { constructor() { super(); this.btnStart.on(Laya.Event.CLICK, this, this.startGame); } startGame(): void { //Laya.Scene.open("GameView.scene"); if (!Main.gameView) { ...
来源: Laya_社区 发布时间: 20190510
...同来自: 实验了下,将TextPageUI.surper(this);修改成TextPageUI.__super.call(this);就可以了。 2018-12-25 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 鱿鱼小丝 相关问题 文本如何自动换行 关于文本遮挡 ...
来源: Laya_社区 发布时间: 20181224
...BoxMove"; export default class GameUI extends Laya.Scene { constructor() { super(); //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera...
来源: Laya_社区 发布时间: 20190314
...is.label = (this.label || "ChainCollider"); return super.getDef(); } 改成这样既可 2018-11-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 188*****406 相关问...
来源: Laya_社区 发布时间: 20181116
...javascript export default class GameUI extends Laya.Scene { constructor(){ super(); //加载场景文件 this.loadScene("test/TestScene.scene"); //加载场景 Laya.Scene3D.load('LayaScene_test/Conventional/test.ls',Laya.Handler.create(this,this.onComplete)) } /** * 加载完成 */ onComplete(scene)...
来源: Laya2.0_文档 发布时间: 20210715
...; // private _img: Image = null; private _lb:Label = null; constructor() { super(); this._lb = new Label(); this._lb.size(ListDataSourceItem.WID, ListDataSourceItem.HEI); this.addChild(this._lb); // this._img = new Image(); // this._img.size(ListDataSourceItem.WID, ListDataSourceItem.HEI); // this.a...
来源: Laya_社区 发布时间: 20180410
...orDialog = (function () { function selectColorDialog() { SelectColorDialog.super(this); this.name = 'SelectColorDialog'; this.x = 1013; } Laya.class(selectColorDialog, "SelectColorDialog", testUI); return selectColorDialog; }());调用对话框的方法 var dialog = new SelectColorDialog(); dialog.s...
来源: Laya_社区 发布时间: 20180326
... public static HEI:number =30; constructor(){ super() this.size(Item.WID,Item.HEI); var img1 =new Laya.Image("bg0.png"); var img2 =new Laya.Image("bg1.png"); this.pos(0,0); img1.size(100,30);...
来源: Laya_社区 发布时间: 20190522
...起来就会有问题 public _lateUpdate(state: Laya.RenderState): void { super._lateUpdate(state); this.gun.transform.localPosition=this.pos; } 2017-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 183*****75...
来源: Laya_社区 发布时间: 20170531