大约有 120 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0079 秒)
...的问题 this.mask.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");
来源: Laya_社区 发布时间: 20180713
... vbox:HBox = new HBox(); Laya.stage.addChild(vbox); vbox.width = 500; vbox.height = 300; var image:Image = new Image(); image.skin = "rank/132.jpg"; vbox.addChild(image); image.size(100,100); var image2:Image = new Image(); image2.skin = "rank/132.jpg"; vbox.addChild(image2); image2.size(100,100); 2...
来源: Laya_社区 发布时间: 20180829
...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite editable : Bool...
来源: Laya2.0_api 发布时间: 20190513
...tangle = new Laya.Rectangle(0, 0, Laya.stage.designWidth, Laya.stage.designHeight); //创建TiledMap地图 this.tMap.createMap("resources/TiledMap/orthogonal.json", viewRect, new Laya.Handler(this, this.completeHandler)); } //添加地图到Scene2D下 private onLoaded(): void { this.tMap.mapSprite()...
来源: Laya3.0_文档 发布时间: 20251010
...txt.bold = true; txt.pos(g_stat_width - txt.width - 40, g_stat_heiht - txt.height - 20); Laya.stage.addChild(txt); txt.on(Laya.Event.CLICK, this, function(e) { switch (e.type) { case Laya.Event.CLICK: gameStart(); break; } }); //注册鼠标点击 加入一个显示得分的函数,分数由时间...
来源: Laya_社区 发布时间: 20160623
...eateMap("../res/dt.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); 调用后报错TypeError: Cannot read property 'split' of undefined at TiledMap.__proto.mergePath (file:///C:/Users/Administrator/Documents/myLaya/Hello/bin/libs/laya.tiledmap.js:257:31) at Tile...
来源: Laya_社区 发布时间: 20181026
...调用,只会显示一个图片(1.0会显示多个图片),x,y,width,height参数取消。</p> * @param url 图片地址。 * @param complete (可选)加载完成回调。 * @return 返回精灵对象本身。 ...
来源: Laya_社区 发布时间: 20181010
...rowser.clientWidth`获取逻辑分辨率的宽,通过`Laya.Browser.clientHeight`获取逻辑分辨率的高。 在手机等移动设备的竖屏状态下,窄面为宽,长面为高。如果发生了屏幕翻转的横屏状态,则长的一面为宽,窄面为高。 在PC浏览器中,则是...
来源: Laya2.0_文档 发布时间: 20210715
... _mapW = tJsonData.width; _mapH = tJsonData.height; _mapTileW = tJsonData.tilewidth; _mapTileH = tJsonData.tileheight; _width = _mapTileW * _mapW; ...
来源: Laya_社区 发布时间: 20161109
...形宽) | 支持 | | Terrain Length(地形长) | 支持 | | Terrain Height(地形高) | 支持 | | Detail Resolution(细节分辨率) | 支持 | ##### 需要重点说明的地形材质 地形的材质不支持LayaAir引擎当前自带的材质Shader,导出的地形的静态网格(...
来源: Laya2.0_文档 发布时间: 20210714