大约有 2,310 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0059 秒)
Laya_社区(1513) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya3.0_文档(75) Laya2.0_api(74) laya_api(70)
...mage("smallmap/" + _mapID + ".jpg", 0, 0, mapWidth, mapHeight); _container.addChild(_minMap); 其中 mapWidth =1600 mapHeight = 1900 难道引擎底层再替换前没有做销毁吗 2018-09-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20180913
...方法,请求官方帮助, 项目分包后, 运行出错 用Laya.stage.addChild(new testUI());后,原来让页面还在运行 请问Laya支持什么样的swf,我运行公司美术给的swf,屏幕一片黑 问题状态 最新活动: 2018-04-03 08:37 浏览: 1694 关注: 2 人
来源: Laya_社区 发布时间: 20180403
...些draw batch 一个draw call里面呢? sp = new Sprite(); Laya.stage.addChild(sp); //画线 sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 sp.graphics.drawLines(176, 58, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#ff0000", 5); //画曲线 sp.graphics.drawCurves(352, 58...
来源: Laya_社区 发布时间: 20190530
...如下: var scene = Laya.Scene.load("res/LayaMain/main.ls") Laya.stage.addChild(scene); var camera: Laya.Camera = (scene.getChildByName("Main Camera")) as Laya.Camera;//camera为空 附件 : --> LayaAirPjt.rar 2018-01-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20180118
...gt; { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.printProgress).then(() => { Laya.loader.load("sub2/Sphere.lh").then((res: any) => { let sp3 = res.create(); this.scene3d.addChild(sp3); }); }) } printProgress(r...
来源: Laya3.0_文档 发布时间: 20251010
...PNG, num.toString()); this._sprFight.x = 600; this._sprFight.y = 150; this.addChild(this._sprFight); } dispose(): void { this.imgItem.graphics.clear(); this.imgItem.removeSelf(); this.imgItem.skin = null; this._sprFight.graphics.clear(); this._sprFight.removeSelf(); this._sprFight = null; } 像...
来源: Laya_社区 发布时间: 20170916
...pescript //渲染到纹理的相机 var renderTargetCamera: Camera = scene.addChild(new Camera(0, 0.3, 1000)) as Camera; renderTargetCamera.transform.position = new Vector3(-28.8, 8, -60); renderTargetCamera.transform.rotate(new Vector3(0, 180, 0), true, false); //选择渲染目标为纹理 renderT...
来源: Laya2.0_文档 发布时间: 20210715
....graphics.drawRect(0, 0, 300, 300, "#ffcccc"); //添加到stage Laya.stage.addChild(bgPage); //实例化MonkeyPageUI页面 var monkeyPage: ui.MonkeyPageUI = new ui.MonkeyPageUI(); //为了能够清楚的看到这个页面所在的位置,在此设置设置一个背景色 monkeyPage.graphics.drawRec...
来源: Laya2.0_文档 发布时间: 20210715
...一个页面TipsView为子类 ... ... var tipView = new TipsView(); this.addChild(tipView); function enterNextScene() { } ... ... //这个是TipsView.js类,我想在这个类里调用上面那个父类里enterNextScene的方法,如何获取到上面那个父类呢? var TipsView = (f...
来源: Laya_社区 发布时间: 20171017
... title = new Sprite(); Laya.stage.addChild(title); title.graphics.drawTexture(Laya.loader.getRes("res/mainpage/title.png")); var titleT:Texture = Laya.loader.getRes("res/mainpage/title.png"); i...
来源: Laya_社区 发布时间: 20171001