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

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

1. Cannot read property 'load' of null [ 100%]

...class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=new MapManager(); this.s_instance.init(); } return this.s_instance; } priva...

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

2. 关于下拉列表的选择触发 [ 99%]

关于下拉列表的选择触发 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.small_map....

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

3. 为模型指定地形材质报错 [ 98%]

为模型指定地形材质报错 var lineMesh = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("line/lineMesh.lm")));var terMaterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture2=new Laya.Texture2D.load("map2.png"); ...

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

4. 如何在游戏入口处获取对象的子对象 [ 98%]

... = loadMap.prototype; _proto.init = function() { this.num = ""; this.map = new TiledMap(); } _proto.showMap = function(num) { this.num = num; this.map.createMap("map/level/mota_map" + num + ".json",new Rectangle(0,0,448,448),Handler.create(this,this.mapLoaded));} _proto.mapLoaded = function(){ this....

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

5. 关于下拉列表 [ 97%]

...A,哎,搞了我一晚上,真心不行 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.s...

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

6. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 97%]

...p: Laya.TiledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) }  private onComplete(){ this.map = new Laya.TiledMap(); this.map.createMap(this.MAP_URL, new Laya.Rectangle(0,0,Laya.stage.width, Laya.stage.height), new Laya.Handler(this, this.onMa...

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

7. 关于typescriptB版本,new Map()为什么会提示错误 [ 97%]

关于typescriptB版本,new Map()为什么会提示错误 2018-05-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 yung 赞同来自: Map类找不到吧 2018-05-11 0 0 分享 微博 QZONE 微信 tea 赞同来自...

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

8. 关于下拉列表的选择触发 [ 97%]

关于下拉列表的选择触发 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.small_map....

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

9. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 95%]

...的人压根不知道,也包括我(!嘻嘻) var a: Laya.Sprite = new Laya.Sprite(); a.graphics.drawCircle(0, 0, 50, "#ff0000"); Laya.stage.addChild(a); a.size(100, 100); a.pos(200, 200); a.mouseEnabled = true; a.mouseThrough = true; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event):...

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

10. 引擎 TiledMap 居然不支持图块翻转 [ 94%]

...           this._dataDic = null;             this._tempMapPos = new Laya.Point();             this.layerName = null;         }         init (layerData, map) {             this._map = map;             this._mapData = layerData.data;             var tHeight =...

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