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

大约有 901 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0055 秒)

591. laya有没有一个容器,他的长宽自动等于父容器长宽啊 [ 67%]

...NE 微信 Laya_Aaron 赞同来自: 设置 宽高等于 Laya.stage.width,  height  2018-07-23 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 liwenhua 相关问题 看了其他引擎才发现 LAYA 真的太太...

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

592. tiledmap有时尺寸不正确 [ 67%]

...ateMap(conf.fileName + ".json", new Rectangle(0, 0, Browser.width, Browser.height), Handler.create(this, this.onCompleteHandler)); } /** * 销毁当前地图 */ public destroy():void{ if (this._mTiledMap) this._mTiledMap.destroy(); if (this._mLevelConf) this._mLevelConf = null; this._mLoadState = ES...

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

593. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 67%]

...epeatY = 4;   list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2;   // 使用但隐藏滚动条 list.vScrollBarSkin = "";   list.selectEnable = true; list.selectHandler = new Handler(this, onSelect);   list.renderHandler = new Handler(this, updateItem); ...

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

594. tiledMap类createMap()创建地图 如何理解这个viewRect视口区 [ 67%]

...什么宽高)         console.log(tiledMap.gridWidth,tiledMap.gridHeight);         //地图宽高         console.log(tiledMap.width,tiledMap.height);         //         console.log(tiledMap.numColumnsGrid,tiledMap.numRowsGrid );          console.log(...

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

595. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 67%]

...片 this.bgimg = new Laya.Sprite(); this.bgimg.width=2*scronw; this.bgimg.height=2*scronh; //加载显示图片,坐标位于0,0 var temptexture=Loader.getRes(pic); if (typeof(temptexture)!="undefined"){ this.bgimg.texture=Loader.getRes(pic) }else{ this.bgimg.loadImage(pic); } this.donghua=true; th...

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

596. 用javascript如何实现游戏登录游戏前的资源加载进度,如何将图片,音乐等素材加载到界面通过加载条显示加载进度 [ 67%]

...aPosition() { this.progressUI.setPosition(Laya.stage.width / 2, Laya.stage.height / 2); } public loadMainDatas() { Laya.loader.load([ { url: "res/ui/UIComponents@atlas0.png", type: Loader.IMAGE }, { url: "res/ui/UIComponents.fui", type: Loader.BUFFER }, { url: "res/ui/FastBet.fui", type: Loader.BUFF...

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

597. 游戏铺满固定大小容器,火狐和谷歌正常,edge会有滚动条? [ 67%]

...             if(Laya.Browser.clientWidth>Laya.Browser.clientHeight){                         console.log("横屏",this.lastClientWidth);                         if(Laya.stage.scaleMode != Laya.Stage.SCALE_SHOWALL){             ...

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

598. 绘制平明问题 [ 67%]

...           canvas.graphics.drawPoly(Laya.stage.width / 2, Laya.stage.height / 2, path, "#FF7F50"); 这个可以通过一些点来绘制一个平面图形 2017-11-03 0 1 分享 微博 QZONE 微信 i_like_these 赞同来自: 请问下 这个绘制是2d的吗 还是3D的 能绘制3D平面吗?  ...

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

599. Panel初始化BUG [ 67%]

...以像素为单位)。      * @param width 宽度。      * @param height 高度。      */     private setContentSize(width: number, height: number): void {         var content: Box = this._content;         var rectX = 0;         var rectY = 0;         if (this.vScrollB...

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

600. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 67%]

...text.text="لحسن نهر123"; text.pos(100, 100); text.width = 500; text.height = 500; Laya.stage.addChild(text); }   参考该贴加载字体方式: https://ask.layabox.com/question/332 附件 : --> LayaFontTest.zip 2018-07-05 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有...

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