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

大约有 2,310 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0059 秒)

1231. Image使用疑问 [ 57%]

...mage("smallmap/" + _mapID + ".jpg", 0, 0, mapWidth, mapHeight); _container.addChild(_minMap);   其中 mapWidth =1600 mapHeight = 1900   难道引擎底层再替换前没有做销毁吗     2018-09-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

1232. LayaNative目前是不支持运行3D吗? [ 57%]

...方法,请求官方帮助, 项目分包后, 运行出错 用Laya.stage.addChild(new testUI());后,原来让页面还在运行 请问Laya支持什么样的swf,我运行公司美术给的swf,屏幕一片黑 问题状态 最新活动: 2018-04-03 08:37 浏览: 1694 关注: 2 人

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

1233. batch draw 减少draw call [ 57%]

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

1234. Unity插件导出后获取不了Scene子集 [ 57%]

...如下: 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

1235. 支付宝小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

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

1236. skin 大于512 的释放问题 [ 57%]

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

1237. 目标纹理的使用(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 57%]

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

1238. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 57%]

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

1239. 怎样获取父类? [ 57%]

...一个页面TipsView为子类 ... ... var tipView = new TipsView(); this.addChild(tipView);   function enterNextScene() { } ... ...      //这个是TipsView.js类,我想在这个类里调用上面那个父类里enterNextScene的方法,如何获取到上面那个父类呢? var TipsView = (f...

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

1240. [求助]无法使用loader预先加载 [ 57%]

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