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

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

301. LayaBox进阶之UI管理类 [ 75%]

...写框架的话,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

302. 锯齿问题 求破 [ 75%]

...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

303. 关于页面跳转的困惑,class初始化和释放的问题[ 75%]

...问题。 我是这样实现页面跳转的 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

304. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 75%]

...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

305. 【简单跑酷--JS版】---Lv.3 添加地板 [ 74%]

...onsole.log('RunGame Init'); //添加背景 var bg = new Background(); this.addChild(bg); //添加地板集合 var mapFloor = new MapFloor(); this.addChild(mapFloor); } })(); 前期工作都做好了~~ 接下来就是把地板显示到舞台上面 打开Floor.js 我们来给floor设置皮肤  (funct...

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

306. 我浏览在线文档 关于共享材质和自身材质的代码 貌似没有什么不同? [ 74%]

...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

307. 3D场景跳转到2D场景问题 [ 74%]

... //创建胜利的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

308. 求助。资源加载问题,按照官方demo出现问题 [ 74%]

...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

309. 为什么hitTestPoint始终是false? [ 74%]

...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

310. 八叉树与PixelLineSprite3D冲突 [ 74%]

...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