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

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

11. laya.map.MapLayer_API3.0 [ 86%]

...lic/Protected All Inherited Externals Only exported Menu Globals "laya/map/MapLayer" MapLayer Class MapLayer 地图支持多层渲染(例如,地表层,植被层,建筑层等) 本类就是层级类 author ... Hierarchy Sprite MapLayer Index Constructors constructor Properties _extra _ownGra...

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

12. 加载TiledMap 不显示 [ 85%]

...示 import Sprite = Laya.Sprite; import Stage = Laya.Stage; import MapLayer = Laya.MapLayer; import TiledMap = Laya.TiledMap; import Point = Laya.Point; import Rectangle = Laya.Rectangle; import Handler = Laya.Handler; import WebGL = Laya.WebGL;  export class TiledMap_Isom...

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

13. 向TiledMap中对象层中矩形框添加精灵,不显示 [ 80%]

...dMap)); } private var sp:Sprite; private function onLoadedMap():void { var mapLayer:MapLayer=tiledMap.getLayerByIndex(2); sp=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); sp.zOrder=1000; mapLayer.addChild(sp); Laya.timer.loop(200,this,onLoop); } private var aaa:Number=0; priva...

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

14. 设置viewport后显示区域变黑色 [ 75%]

设置viewport后显示区域变黑色 在TileMapMapLayerinit函数中   如果设置viewport,显示区域变黑 如果设置scrollRect,正常显示                //          this.viewport = new Rectangle(0, 0, Laya.stage.width, Laya.stage.height);             th...

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

15. tiledmap 可以在图块层指定格子上添加Sprite吗 [ 71%]

...//, null, new Laya.Point(1600, 816)); } private test(){ var testLayer:Laya.MapLayer = this.tMap.getLayerByName("player"); this.tMapPlayer = new Laya.Sprite(); this.tMapPlayer.graphics.drawRect(0, 0, 100, 100, "#FF0000", "#0000FF", 1); //this.tMapPlayer.loadImage("unit/test.png"); this.tMapPlayer.zOr...

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

16. TiledMap加载报错 relativePath为空 [ 65%]

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

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

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

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

18. laya.display.Sprite [ 35%]

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

来源: laya_api 发布时间: 20170929

19. laya.display.Sprite_API3.0 [ 32%]

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