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

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

2071. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 67%]

...ya.stage.height), new Laya.Handler(this, this.onMap)) }  private onMap(){ var idx = this.map.getLayerByIndex(0).getTileDataByScreenPos(20,20); var pass = this.map.getTileProperties(0,idx - 1,'pass'); console.log('打印=======================================') console.log(idx, pass, this.map['_tile...

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

2072. ios上input无法隐藏 [ 67%]

ios上input无法隐藏            var z_file = Laya.Browser.document.createElement("input"); //创建input             var f_file = Laya.Browser.document.createElement("input"); //创建input             z_file.style="filter:alpha(opacity=0);opacity:0;width: 29%;height:11%;";   ...

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

2073. drawToCanvas真机资源无法释放 [ 67%]

...传吗? 2018-12-19 0 5 分享 微博 QZONE 微信 大林 赞同来自: var htmc = this.paper.displayObject.drawToCanvas(this.paper.displayObject.width, this.paper.displayObject.height, 0,0); htmc.destroy(); --------》     __proto.destroy=function(){         this._ctx && this._...

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

2074. Laya 绑定显示内容到骨骼动画 [ 67%]

...     __proto.getResultMatrixByFrame=function(index){         var matrix=this._resultMatrixCache[index];         if(matrix){             return matrix;         }         return this.resultMatrix;     }   2. Bone 的构造函数中添加矩阵缓...

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

2075. laya.ui.Dialog [ 67%]

...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.st...

来源: Laya2.0_api 发布时间: 20190513

2076. [LayaAir3]微信小游戏 高性能+模式文字显示不全 [ 67%]

[LayaAir3]微信小游戏 高性能+模式文字显示不全 var bugIOS = false;//是否是有bug的ios版本         //在微信下有时候不显示文字,所以采用canvas模式,现在测试微信好像都好了,所以去掉了。         var miniadp: any = ILaya.Laya['MiniAdpter'...

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

2077. laya.device.media.Video [ 67%]

...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.st...

来源: Laya2.0_api 发布时间: 20190513

2078. 如何使用类似AS库打包的方式来分包 [ 67%]

...tion CLassA() { } } }分包文件内容:(function(window,document,Laya){ var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__class=Laya.class,__getset=Laya.getset,__newvec=Laya.__newvec; //class cn.ztgames.st.Framework.Framework var Framework=(function(){ function Framework(){} __class(Framewor...

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

2079. 创建多个Sprite对象后,再次取出来的时候坐标全为0,0高宽跟创建时的也不一样 [ 67%]

...: 与内容相关的链接 提交 1 个回复 一点一滴 赞同来自: var sp = new Laya.Image(); var sb = new Laya.Image(); sp.name = "logo_" + nums; sb.name = "logo_bg_" + nums; userBoxSprite.addChild(sb); userBoxSprite.addChild(sp); // sb.loadImage(newBg1, x, y, singleWidth, singleHeight); sb.s...

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

2080. laya.ui.TipManager [ 67%]

...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.st...

来源: Laya2.0_api 发布时间: 20190513