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

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

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

...ure             var texEnd:Texture=Texture.create(texture,240,248,120,118);             //将新的texture放置到display容器下,显示到舞台上             var sp:Sprite=new Sprite();             sp.graphics.drawTexture(texEnd,240,230,120,120)       ...

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

12. layaAir遮罩问题 [ 79%]

...illStyle: "#ff00ff"}); 画了个100*100的圆角矩形结果遮罩层变成120*120了 附件 : --> HeadImage2.rar 2017-04-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 能否把你可...

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

13. 资源加载图集问题 [ 77%]

资源加载图集问题 我现在打包了一个图集,大小是56KB,120*120的,加载的时候提示加载失败是因为什么原因啊! 2017-12-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 q14029...

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

14. UI-Tab [ 75%]

...(); function onSkinLoaded() { var tabA = createTab(skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#333333"; var tabB = createTab(skins[1]); tabB.pos(40, 220); tabB.labelColors = "#FFFFFF,#8FB299,#FFFFFF"; } function createTab(skin) { var tab = new Tab(); tab.skin = skin; tab.label...

来源: Laya_示例 发布时间: 20260106

15. Matter和Sprite绑定后图片移位问题 [ 75%]

...aya.Sprite().loadImage("img/hero.png");         ball_skin.scale(50/120, 80/178);         ball_skin.pivot(ball_skin.width / 2, ball_skin.height / 2);         var ball = Matter.Bodies.rectangle(330, 1,50, 80, {         layaSprite: ball_skin, // 绑定一个laya的Sprite...

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

16. UI-Tab [ 75%]

...ed)); } onSkinLoaded() { let tabA = this.createTab(skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#333333"; let tabB =this. createTab(skins[1]); tabB.pos(40, 220); tabB.labelColors = "#FFFFFF,#8FB299,#FFFFFF"; } createTab(skin) { const Tab = Laya.Tab, Handler = Laya.Handler; let t...

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

17. 怎么才能像HTML5中那样直接操作Canvas [ 72%]

...var ctx:Context = canvas.getContext(); ctx.fillStyle = "red"; ctx.fillRect(120, 10, 150, 150,"red"); ctx.fillText("texttt",100,100,"","#ffffff","center"); console.log("draw complete"); 2017-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

18. Sprite.loadImage在Android平台无法卡死,web和iOS平台正常 [ 71%]

...: 头像预设父节点的宽和高,在编辑器中就设置好的,如120x120 2017-12-29 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 fantasyx2 相关问题 2.0一不小心删了bin目录下的某个场景json文件。。竟然无...

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

19. DOM元素-表单输入 [ 71%]

...age.bgColor = "#FFFFFF"; this.form = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing = 10; var rowHeightDelta = this.rowSpacing + this...

来源: Laya_示例 发布时间: 20260106

20. DOM元素-表单输入 [ 70%]

....stage.bgColor = "#fff"; this.form = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing = 10; let rowHeightDelta = this.rowSpacing + this...

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