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

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

591. 事件绑定不触发bug [ 67%]

...至Canvas             Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL);             Laya.stage.alignV = Stage.ALIGN_MIDDLE;             Laya.stage.alignH = Stage.ALIGN_CENTER;             Laya.stage.scaleMode = "showall";             Laya.stage.bgCo...

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

592. htmlCanvas 像素级操作 [ 67%]

...临时sprite的htmlCanvas var htmlCanvas = img.drawToCanvas(tex.width,tex.height,0,0); //获取临时sprite的 原生Canvas var c = htmlCanvas.getCanvas(); var ctx = c.getContext("2d"); //获取canvas的imgData var imgData = ctx.getImageData(0,0,ctx.canvas.width,ctx.canvas.height); //将图片的数...

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

593. layabox与java交互 [ 67%]

...); hh.text = "laya安卓项目2"; hh.pos(Laya.stage.width / 2 , Laya.stage.height / 2); hh.fontSize = 20; hh.color = "red"; Laya.stage.addChild(hh); } } new GameMain(); var sData={type:"test"}; window.conchMarket.login(JSON.stringify(sData),function(data){ console.log(data); // TODO 数据处理. })...

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

594. laya.ui.CheckBox [ 67%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component filters : Array滤镜集合。可以设置多...

来源: laya_api 发布时间: 20170929

595. WebGL 绘制图形报错 [ 67%]

...raphics.save(); mask.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height, 0xff0000 ); mask.graphics.restore(); mask.x = 0; mask.y = 0; Laya.stage.addChild( mask ); 麻烦看下是什么问题。   附件 : --> 2017-02-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

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

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

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

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

598. 在微信小游戏中使用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

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

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