大约有 1,557 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0062 秒)
...写框架的话,UI管理器是最基础的一部分; 打开界底层是addChild打开的; 新建一个UIManagerexport class UIManager { private mainContent: Laya.Sprite; private scene: GameScence; private uiList:any; constructor() { this.mainContent = new Laya.Sprite(); this.uiList = ; }...
来源: Laya_社区 发布时间: 20190222
...raphics.drawTexture(imgTextTure,0,0); avatarContainer.addChild(imgSprite); var mask = new Sprite(); mask.graphics.drawCircle(50,50,50,"#00ffff") imgSprite.mask = mask; var ci...
来源: Laya_社区 发布时间: 20170209
...问题。 我是这样实现页面跳转的 var b = new B() 然后stage.addChild(b) ,这时候UI从A切换到了B 然后 var a = new A() 然后 stage.addChild(a) ,这时候UI从B切换到A 以上实现UI页面的跳转,但是发现再次 从A跳转到B的时候,class B里的construct...
来源: Laya_社区 发布时间: 20170926
...e(){ //创建场景 let scene = Laya.stage.addChild(new Laya.Scene3D()); //创建相机 let camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); //设置相机的名称 camera.name = "camera"; ...
来源: Laya_社区 发布时间: 20190531
...onsole.log('RunGame Init'); //添加背景 var bg = new Background(); this.addChild(bg); //添加地板集合 var mapFloor = new MapFloor(); this.addChild(mapFloor); } })(); 前期工作都做好了~~ 接下来就是把地板显示到舞台上面 打开Floor.js 我们来给floor设置皮肤 (funct...
来源: Laya_社区 发布时间: 20160728
...3D场景----------------------- this.scene = new Laya.Scene(); Laya.stage.addChild(this.scene); //方法一:直接异步加载 // var mesh:Laya.Mesh = Laya.Mesh.load("LayaScene_01/Assets/model/loveScene_jianzhu.lm"); // var meshSprite3D:Laya.MeshSprite3D = new Laya.MeshSprite3D(mesh); //方法二...
来源: Laya_社区 发布时间: 20171109
... //创建胜利的UI界面 let victoryScene=new VictoryScene(); Laya.stage.addChild(victoryScene); this.isDelete=true; // console.log(Scene3DControl.GameSceneB); } }结束界面跳转到3D场景 import {VictorySceneUI} from '../ui/layaMaxUI' import GameScene from './GameScene'; export defaul...
来源: Laya_社区 发布时间: 20190903
...onLoadComplete(){ const scene = new Laya.Scene3D() Laya.stage.addChild(scene) const prefab = Laya.loader.getRes(url) scene.addChild(prefab) } 2020-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20200313
...or() { super(); var img:Laya.Image = new Laya.Image("comp/bg.png"); this.s.addChild(img); this.addChild(this.s); Laya.stage.on(Laya.Event.CLICK, this, this.hitPoint); } private hitPoint(e:Laya.Event): void { console.log(this.s.hitTestPoint(e.stageX, e.stageY)); } } 很简单的代码,不知道什...
来源: Laya_社区 发布时间: 20170319
...s); this.scene3d = new Laya.Scene3D(); Laya.stage.addChild(this.scene3d); let ss = new Laya.PixelLineSprite3D(); this.scene3d.addChild(ss); 附件 : --> 2021-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20210322