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

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

61. laya.resource.HTMLCanvas [ 66%]

...ya.resourceClasspublic class HTMLCanvasInheritanceHTMLCanvas laya.resource.Bitmap HTMLCanvas 是 Html Canvas 的代理类,封装了 Canvas 的属性和方法。 Public Properties PropertyDefined By  context : Context[read-only] Canvas 渲染上下文。 HTMLCanvas  _source : *HTMLCanvas  so...

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

62. _calculateCacheRect函数有bug [ 66%]

...reate();             var tRec;             if (tCacheType === "bitmap") {                 //用sprite.getSelfBounds(),原先的值会被修改;导致设置了selfBounds的对象,                 //宽高越来越大;用一个临时对象处理相关数据;     ...

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

63. 关于微信小游戏的开放数据域,请问如何将开放数据域的canvas绘制到layaair的image上? [ 66%]

... rankTexture = new Laya.Texture(wxMgr.getOpenDataCanvas()); // rankTexture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 // console.log(rankTexture); // var img = wxMgr.getOpenDataCanvas().toDataURL("image/png"); // this.view.image_rank_list.source = img; // var canvas_2d_c...

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

64. laya中的截屏在WebGL下为什么无效呢? [ 65%]

...效。 以下是 egret中截屏的关键代码 this._bmpSnap = new egret.Bitmap; this._bmpSnap.x = L.GAP_UNIFIED; this._bmpSnap.y = this._contMotion.y + L.H_CLIP + L.GAP_UNIFIED; this.addChild( this._bmpSnap ); /// 快照特效 this._shapeSnapEffect = new egret.Shape; this._shapeSnapEffect.graphics....

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

65. texture可以加载一个canvas吗 [ 64%]

...100); Laya.stage.addChild(sp2);   文档说好像可以 报错了。 this.bitmap.activeResource is not a function 有其他的方法将一个canvas的内容绘制到另外一个canvas吗 附件 : --> 2017-11-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

66. 为啥 增加 Text ,drawcall 暴增 ?????????????? [ 64%]

...ya.Text(); fish.scoreText.font = "fnt_10103"; // fish.scoreText.cacheAs = 'bitmap'; fish.scoreText.x = fish.scoreGold.width + fish.scoreGold.x - 4; fish.scoreText.y = fish.scoreGold.y + 2; fish.scoreText.text = price; this.scoreBox.addChild(fish.scoreText); 附件 : --> 2018-05-17 添加评论 免...

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

67. 1.7.17beat bug [ 64%]

1.7.17beat bug 微信小游戏 1. android下不能使用 cacheAs="bitMap" 微信的加载设计是4M资源不加入version.json管理的吗? 我看到工具会用。但是代码里面加载的时候URL.formatURL 判断优先级会return 掉 QQ玩一玩 1.界面适配 2 this.__strokeText(text,x,y)...

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

68. LAYABOX读取贴图的时候 是否可以更改 列如 UNITY 里的 Filter Mode 采样模式 [ 64%]

...接 提交 1 个回复 Laya_Aaron 赞同来自: class BaseTexture extends Bitmap { static WARPMODE_REPEAT: number = 0; static WARPMODE_CLAMP: number = 1;  /**寻址模式_重复。*/ static FILTERMODE_POINT: number = 0; /**寻址模式_不循环。*/ static FILTERMODE_BILINEAR: number = 1; /**寻...

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

69. laya.d3.resource.TextureCube [ 63%]

...sspublic class TextureCubeInheritanceTextureCube BaseTexture laya.resource.Bitmap TextureCube 类用于生成立方体纹理。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By anisoLevel : int 各向异性等级 BaseTexture  defaulteTexture ...

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

70. 关于微信小游戏渲染子域图的问题 [ 63%]

...); var texture:Texture = new Texture(Browser.window.sharedCanvas); texture.bitmap.alwaysChange = true;//小程序使用,非常费,这个参数可以根据自己的需求适当调整,如果内容不变可以不用设置成true sprite.graphics.drawTexture(texture, 0, 0, texture.width, texture.he...

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