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

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

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

关于微信小游戏渲染子域图的问题 new Texture(Browser.window.sharedCanvas); 上面这句报错: gameThirdScriptError value._addReference is not a function TypeError: value._addReference is not a function     at Texture.<anonymous> (http://127.0.0.1:10656/game/js/bundle.js:1518...

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

42. 关于大量图片加载绘制后的内存暴增的疑问 [ 91%]

...加载把302个图片资源加入到内存中,然后通过getRes 和 drawTexture 添加SPRITE对象到屏幕中。 预加载后的初始内存为29M左右 之后开始逐个添加SPRITE,在添加第1个到第80个头像的时候,内存显示稳定在29M 但是当添加第81个SPRITE头像的...

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

43. 动态创建img 或 sprite [ 91%]

...擎 动态创建img 或 sprite let dd = new Laya.Sprite(); dd.graphics.drawTexture(this.img.texture, 0, 0, 750, 1334); dd.x = 50; dd.y = 50; this.addChild(dd);   this.img 绝对不为空,我想用一个sprite来画它,请问什么画(不是拷贝)?   2018-01-24 添加评论 免费帖 -->...

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

44. 鼠标交互-Hold [ 91%]

...nt = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(apePath); let texture = Laya.loader.getRes(apePath); this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.ape.scale(0.8, 0.8); Laya.stage.addChild(this.ape); // 鼠标交互...

来源: Laya2.0_示例 发布时间: 20251130

45. sprite.loadImage加载图片怎么设置要显示的x,y坐标和宽高? [ 91%]

...关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 用 graphic.drawTexture 2019-02-14 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 仰望星空 相关问题 请问LayaAir中如何使图片以圆形的方式显示? 招聘:H5...

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

46. 请问一下,怎么将下面这段AS3代码翻译成LayaAir的API [ 90%]

...te; import laya.maths.Matrix; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(700,600); Laya.loader.load('res/apes/monkey2.png',Handler.create(this,onLoaded)) } private function onLoaded():void { va...

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

47. drawToTexture 绘制函数不工作呢 [ 90%]

drawToTexture 绘制函数不工作呢           let top_rect: Laya.Sprite = new Laya.Sprite();         top_rect.x = 0;         top_rect.y = 0;         top_rect.size(100, 100);         top_rect.graphics.drawRect(0, 0, 100, 100, "#0000FF", "#000000", 1);   ...

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

48. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 90%]

...LongShi.ls", "res/threeDimen/skyBox/skyBox2/skyBox2.lmat", "res/threeDimen/texture/earth.png", "res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", "res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", "res/threeDimen/skinModel/BoneLinkScene/PangZiNoAni.lh", "res/threeDim...

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

49. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 90%]

...LongShi.ls", "res/threeDimen/skyBox/skyBox2/skyBox2.lmat", "res/threeDimen/texture/earth.png", "res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", "res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", "res/threeDimen/skinModel/BoneLinkScene/PangZiNoAni.lh", "res/threeDim...

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

50. 如何实现类似AS3下的BitmapData.draw去截取区域图片? [ 90%]

... 个回复 cuixueying 赞同来自: 1、譬如我有一张图片 2、通过TextureCreate创建package {     import laya.display.Sprite;     import laya.resource.Texture;     import laya.utils.Handler;     public class CupPhone     {         public function CupPhone()       ...

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