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

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

181. app 截屏分享功能问题 [ 73%]

...sendReq(req) ; } 传过去的是bitmap: var htmlCanvas:HTMLCanvas; var texture:Texture; htmlCanvas = Laya.stage.drawToCanvas(Laya.stage.width,Laya.stage.height,0,0); texture = new Texture(htmlCanvas); texture.bitmap; 2018-03-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

182. 新人求教!!! [ 73%]

...g = !this.flag)? this.monkey2:this.monkey1;   //获取图片资源   var texture:Laya.Texture = Laya.loader.getRes(imgUrl);   //绘制纹理   this.img.graphics.drawTexture(texture);   //设置纹理宽高   this.img.size(texture.width, texture.height); <!--  我想把加粗部分换成  ...

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

183. 统计信息 · LayaAir3.4 · 引擎文档 · LAYABOX [ 73%]

...mory(M_DeviceBuffer)5.10 Device Buffer Count(C_DeviceBuffer)6. GPU Texture Resource/Memory(GPU 纹理资源/内存)6.1 All Texture Memory(M_AllTexture)6.2 All Texture Count(C_AllTexture)6.3 Texture2D Memory(M_Texture2D)6.4 Texture2D Count(C_Texture2D)6.5 TextureCube Memor...

来源: Laya3.0_文档 发布时间: 20260128

184. laya2.0 截图功能分享,直接截取屏幕上所有对象 [ 73%]

...戏正常可用 private static _sp: Laya.Sprite = null; private static tempTexture2D: Laya.Texture2D; private static tempTexture: Laya.Texture; /**截图 */ public static drawScreenshot(width, height, x, y) { if (!SwitchHelper.screenDraw) { return null; }  if (!this.tempTexture2D) { this.tempTextur...

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

185. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 72%]

...var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex:Laya.Texture2D) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, ...

来源: Laya2.0_文档 发布时间: 20210715

186. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 72%]

...//新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.create(null, function(tex:Texture2D):void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Vector4(10, 10, 0, 0); //设...

来源: Laya2.0_文档 发布时间: 20210714

187. 设置滤镜(ActionScript-LayaAir基础篇(AS3)-位图) [ 72%]

... laya.display.Stage; import laya.filters.ColorFilter; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { private const ApePath:String = "res/img/monkey1.png"; private var apeTexture:Texture; public function Main() { // 不...

来源: Laya2.0_文档 发布时间: 20210715

188. [LayaAir3]sprite.drawToTexture( ) 无法绘制容器内容 [ 72%]

[LayaAir3]sprite.drawToTexture( ) 无法绘制容器内容  drawToTexture() 方法不能按预期工作,只能绘制背景,无法绘制出子节点内容,API文档对参数也没有详细注释,各种尝试都无解。DEMO 代码已上传,麻烦帮忙看看,感谢。 附件 : --> bug-d...

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

189. getimagedata直接调用无法获取有效像素问题 [ 72%]

...素数据都是0),看起来像是程序设计问题。 而在调用了 texture的 getpixels 得到有效数据。__proto.getPixels=function(x,y,width,height){ if (Render.isWebGL){ return RunDriver.getTexturePixels(this,x,y,width,height); }else { Browser.canvas.size(width,height); Browser.canvas....

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

190. 微信里面我加载一个服务器上的图片,如果退出微信 重新再打开load这个服务器地址图片 是从本地缓存中加载还是从新从服务器下载 [ 72%]

...译。 2.2.0beta4 发布微信小游戏,安卓设备加载场景黑屏 Texture图片能否进行翻转? 怎样获取浏览器地址传过来的GET参数 Layabox如何实现本地存储 请教下微信小游戏的内存和数据缓存? 播放背景音乐的问题 刚打开 桌面调试出现报...

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