大约有 149 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0043 秒)
Laya_社区(94) Laya3.0_api(22) Laya2.0_文档(11) Laya2.0_示例(6) Laya_示例(6) Laya3.0_文档(4) laya_api(3) Laya2.0_api(3)
TiledMap this.tMap = new Laya.TiledMap(); 就崩溃啦 2018-12-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 。。。。。。官网的示例跑的好好的呀。 可以参照官网...
来源: Laya_社区 发布时间: 20181215
...建精灵监听不到事件? var boxstr = "ui/buildsmall.png"; var box = new Laya.Sprite(); var texture = Laya.loader.getRes(boxstr); box.graphics.drawTexture(texture); var arr = {data: StorageRoom.map_storageData[0][0],tag:0}; box.on(Laya.Event.MOUSE_UP,this,this.onclick,[arr]); var _proto = S...
来源: Laya_社区 发布时间: 20171113
...正常运行。 World 类里的 GetGlobal<T extends Component>(C: new () => T):T 附件里有demo 去掉了图片资源。 附件 : --> 2019-07-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 SE7EN ...
来源: Laya_社区 发布时间: 20190709
... = Stage.ALIGN_CENTER; Laya.stage.bgColor = "#232628"; Laya.stage.viewport=new Rectangle(0,0,300,300); createMap(); } private function createMap():void { tiledMap = new TiledMap(); tiledMap.createMap("res/tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.heig...
来源: Laya_社区 发布时间: 20170419
...wToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而实现...
来源: Laya2.0_api 发布时间: 20190513
...就好了 if(hero == null) { this.tiledmap.name = "xx00"; var viewRect = new Rectangle(0,0,1080,1100); this.tiledmap.createMap("../laya/assets/map/beitianting.json",viewRect,Handler.create(this,onMapCreated)); } 仙魔世界测试.rar 2017-11-20 0 0 分享 微博 QZONE 微信 layaxiaohu 赞同来...
来源: Laya_社区 发布时间: 20171120
3D模型除了无法获得款高问题,发现在new Laya.Scene()中无法通过getChildByName获取到对象 但是,通过getChildAt 可以获取到对象,另外我希望获取之下的所有子节点应该如何处理?另外在减少对象过程中发现删除其中一个对象后,后续...
来源: Laya_社区 发布时间: 20171120
...wToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而实现...
来源: Laya2.0_api 发布时间: 20190513
...赞同来自: 可以了 this.tiledMap.createMap("res/tiled/green.json", new Rectangle(0, 0, 1120, 860), new Handler(this, this.completeHandler),null,new Point(1120,860)); 最后那个参数new Point(1120,860),其实是地图的分块渲染的大小,默认是450,450,所以把我的地图分...
来源: Laya_社区 发布时间: 20180321
...ce toParentPoint updatePos updateZOrder fromImage Constructors constructor new GridSprite(): GridSprite Inherited from Sprite.constructor Overrides Node.constructor Defined in laya/display/Sprite.ts:296 Returns GridSprite Properties Optional _extra _extra: INodeExtra Inherited from Node._extra Defin...
来源: Laya3.0_api 发布时间: 20231115