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

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

41. TiledMap,ignore图块的bug [ 53%]

...所有纹理。   但由于加载好的纹理是push进数组。会导致MapLayer的drawTileTexture方法在读取显示纹理时,调用TiledMap.getTexture方法传入的index和加载好的纹理所在的数组位置对不上。取出了别的纹理。   例如,正常不忽略图块的情况...

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

42. TiledMap加载报错 relativePath为空 [ 53%]

... Laya.Rectangle; var Handler = Laya.Handler; var Sprite = Laya.Sprite; var MapLayer = Laya.MapLayer; Laya.init(800, 800); var map1 = new TiledMap(); map1.createMap("res/maps/scence1.json",new Rectangle(0,0,800, 800),Handler.create(this,onMapLoaded)); function onMapLoaded(){ console.log("地图加载...

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

43. TiledMap中对象排序问题 [ 51%]

...辑器中种植的树,怎么和代码添加的对象互相影响呢? 2.MapLayer中有函数getObjectByName、getObjectDataByName,都是通过函数来获取对象。能提供遍历对象的方式吗?因为策划在地图中种了很多树,程序并不需要知道每棵树的名字,只要...

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

44. Uncaught TypeError: Cannot read property '_tf' of null [ 47%]

...6 error - Out of bounds 'releaseTexture' of null TiledMap通过名字获得MapLayer怎么都是Null 问题状态 最新活动: 2016-12-16 23:51 浏览: 1688 关注: 2 人 nieyiwei • 2016-12-17 10:43 这个问题按照我回复的【改过之后】已经解决了,谢谢帮忙解决

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

45. 2.12.2beta1 诸多bug [ 35%]

...置为null zyy • 2021-11-18 15:18 @Laya_Fred:这样会导致 后续的 MapLayer.clearAll 执行 TileAniSprite.clearAll调用 removeAniSprite 清除timer失败 导致内存泄漏 zyy • 2021-11-18 15:18 TileTexSet.removeAniSprite 清除 timer失败 Laya_Fred • 2021-11-18 15:56 tiledmap的您重...

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

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

...             this._aniName = null;         }     }     class MapLayer extends Laya.Sprite {         constructor() {             super(...arguments);             this._mapData = null;             this._tileWidthHalf = 0;             this._tileHeightHalf = 0; ...

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

47. laya.display.Sprite [ 12%]

...ayoutSubclasses AnimationPlayerBase, Component, DialogManager, GridSprite, MapLayer, MovieClip, Particle2D, Scene, Skeleton, Stage, Text, TileAniSprite, Video Sprite 是基本的显示图形的显示列表节点。 Sprite 默认没有宽高,默认不接受鼠标事件。通过 graphics 可以绘...

来源: laya_api 发布时间: 20170929

48. laya.display.Sprite_API3.0 [ 8%]

...ionBase Scene Scene3D SoundNode VideoNode Skeleton MovieClip TileAniSprite MapLayer GridSprite Particle2D PhysicsDebugDraw SpineSkeleton UIComponent DialogManager Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawto...

来源: Laya3.0_api 发布时间: 20231115