大约有 149 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0034 秒)
Laya_社区(94) Laya3.0_api(22) Laya2.0_文档(11) Laya2.0_示例(6) Laya_示例(6) Laya3.0_文档(4) laya_api(3) Laya2.0_api(3)
...的图元。 求解。。。。 贴上代码: // 2D 场景 this.tMap = new Laya.TiledMap(); var viewRect:Laya.Rectangle = new Laya.Rectangle(); this.tMap.createMap("res/TiledMap/orthogonal-test-movelayer.json",viewRect,Laya.Handler.create(this,this.onMapLoaded)); this.tMap.scale = 1; var ape = ...
来源: Laya_社区 发布时间: 20180514
...边界 private visualizeBoundaries() { const graphics = new Laya.Sprite(); this.owner.addChild(graphics); this.addBoundaryLabels(); } private addBoundaryLabels() { const minXLabel = new Laya.Text(); minXLabel.text = `min...
来源: Laya_社区 发布时间: 20251125
...示,但是ui的按钮可以点击。 我的代码: var _map:TiledMap = new TiledMap(); var viewRect:Rectangle = new Rectangle(0,0,8600,1800); _map.createMap("res/race.json",viewRect);我的游戏销毁的代码 _map.destroy(); _map = null; Laya.stage.addChild(new Plazz());//ui 经过排查后发...
来源: Laya_社区 发布时间: 20180503
... Laya.init(1500, 900); //加载引擎需要的资源 var map1:TiledMap = new TiledMap(); map1.createMap("aa.json",new Rectangle(0,0,1200,720),Handler.create(this,loadMap_1_OK)); } private function loadMap_1_OK():void{ console.log("地图三加载完成"); } } } 2017-01-05 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20170105
... sprite旋转以后,但是原来碰撞检测rect没有旋转 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 解决跨域相关! 请问laya有没有地图编辑器工具? layabox真的只能做棋牌吗?和flash比谁更强?本视频给...
来源: Laya_社区 发布时间: 20181206
...:Md5; public static get Instance():Md5 { return this._inst ||(this._inst = new Md5()); } public get_md5(str:string):string { return this.md5(str); } split(target: string | any[], step: number, markString: boolean = typeof target === "string") { if (typeof target === "string") target = target.split("...
来源: Laya_社区 发布时间: 20190321
...ta mapSprite moveViewPort setViewPortPivotByScale Constructors constructor new TiledMap(): TiledMap Defined in laya/map/TiledMap.ts:144 Returns TiledMap Properties antiCrack antiCrack: boolean = true Defined in laya/map/TiledMap.ts:139 是否调整地块边缘消除缩放导致的缝隙 autoCache au...
来源: Laya3.0_api 发布时间: 20231115
....MeshTerrainSprite3D.createFromMesh(terrain, 129, 129)); var terMaterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture2=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture3=new Laya.Texture2D.load("map2.png"); te...
来源: Laya_社区 发布时间: 20170620
...ttp://cangqiong.17dawan.com/v ... 341015)"; // 错误信息 const tracey = new Stacktracey(errorStack); // 解析错误信息 const { readFileSync } = fs; for(const frame of tracey.items) { // frame.fileName const sourceMapContent = JSON.parse(readFileSync(mapFilePath, 'utf8')); const consumer = a...
来源: Laya_社区 发布时间: 20200720
...经被锁定, 无法添加新回复 发起人 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 2.0一不小心删了bin目录下的某个场景json文件。。竟然无法自动生成了? unity导出粒子文件问题 Layabox 2.0 ...
来源: Laya_社区 发布时间: 20180602