大约有 19 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0045 秒)
...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
...示 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
...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
设置viewport后显示区域变黑色 在TileMap的MapLayer的init函数中 如果设置viewport,显示区域变黑 如果设置scrollRect,正常显示 // this.viewport = new Rectangle(0, 0, Laya.stage.width, Laya.stage.height); th...
来源: Laya_社区 发布时间: 20170418
...//, 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
... 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
... this._aniName = null; } } class MapLayer extends Laya.Sprite { constructor() { super(...arguments); this._mapData = null; this._tileWidthHalf = 0; this._tileHeightHalf = 0; ...
来源: Laya_社区 发布时间: 20220627
...ayoutSubclasses AnimationPlayerBase, Component, DialogManager, GridSprite, MapLayer, MovieClip, Particle2D, Scene, Skeleton, Stage, Text, TileAniSprite, Video Sprite 是基本的显示图形的显示列表节点。 Sprite 默认没有宽高,默认不接受鼠标事件。通过 graphics 可以绘...
来源: laya_api 发布时间: 20170929
...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