大约有 2,553 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0091 秒)
Laya_社区(2056) Laya3.0_api(129) Laya2.0_文档(109) laya_api(84) Laya2.0_api(82) Laya3.0_文档(42) Laya_示例(36) Laya2.0_示例(15)
...p.drawToCanvas(100,100,0,0); //获取截屏区域的texture var _texture = htmlC.getTexture(); //将截屏的texture进行draw绘制并显示到舞台 var sp2 = new Laya.Sprite(); sp2.x...
来源: Laya_社区 发布时间: 20190215
...ite; var Stage = Laya.Stage; var GlowFilter = Laya.GlowFilter; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var Tween = Laya.Tween; var Ease = Laya.Ease; var HitArea = Laya.HitArea; ...
来源: Laya_社区 发布时间: 20181012
...,避免重复创建 3、释放资源直接调用Laya.loader.clearTextureRes 4、每次使用之前,先检测Templete对应的Texture资源是否释放过,如果释放过先恢复Texture的资源,避免Laya.Skeleton使用时发现资源不存在自己去恢复,会有可能重复...
来源: Laya_社区 发布时间: 20201128
...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
2.3微信截图分享问题 let textur: Laya.Texture = this.cut.drawToTexture(500, 500, 0, 0); this.show.texture = textur此代码可以获得一个组件的纹理。并且可以正常展现到另一个组件上去。 现在有个问题。如果用微信分享怎么搞?微信那边需要...
来源: Laya_社区 发布时间: 20191010
Laya能不能把底层的代码做好一点儿? 以Texture为例,如下图所示。Texture构造函数所需一个Bitmap类型。 既然所需一个Bitmap类型,那么在Texture里面的属性就应该明确类型为Bitmap。 既然接收的是一个Bitmap的类型,那么你们为何要在T...
来源: Laya_社区 发布时间: 20171214
...mage/interface/intro_bg.png",0,0,0,0,Handler.create(this,aa)); function aa(texture){ bg.pivot(texture.width,texture.height); bg.alpha = 1; bg.rotation = 10; } 2018-05-19 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发...
来源: Laya_社区 发布时间: 20180519
..."../../res/threeDimen/scene/TerrainScene/Assets/HeightMap.png", clas: Laya.Texture2D, priority: 1, params: [true] }, { url: "../../res/threeDimen/scene/TerrainScene/Assets/AStarMap.png", clas: Laya.Texture2D, priority: 1, params: [true] } ]; Laya.loader.create(resource, Laya.Handler.create(this, onL...
来源: Laya_示例 发布时间: 20260303
....drawToCanvas(300,200,0,0); Laya.timer.once(1000,this,function():void{ var texture:Texture = new Texture(htmlCanvas); var sp2:Sprite = new Sprite(); sp2.graphics.drawTexture(texture); Laya.stage.addChild(sp2); }); } 附件 : --> 2018-11-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20181121
...t("2d").fillRect(20, 20, 60, 60); // 把单独画布绘制到舞台。 var texture:Texture = new Texture(htmlCanvas); Laya.stage.graphics.drawTexture(texture, 0, 0, 100, 100); 2016-10-20 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Cha...
来源: Laya_社区 发布时间: 20161020