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

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

41. Sprite-旋转缩放 [ 66%]

...e.addChild(this.ape); this.ape.loadImage("res/apes/monkey2.png"); this.ape.pivot(55, 72); // this.ape.pos( Laya.stage.width / 2, Laya.stage.height / 2); this.ape.x = Laya.stage.width / 2; this.ape.y = Laya.stage.height / 2; this.scaleDelta = 0; Laya.timer.frameLoop(1, this, this.animate); } animate(...

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

42. 我自己绘制的矩形如何以自身中心点旋转不能实现啊 [ 65%]

...相关的链接 提交 3 个回复 cuixueying 赞同来自: 设置矩形的pivot属性为自身宽高/2即可! 2017-08-30 0 1 分享 微博 QZONE 微信 cuixueying 赞同来自: package { import laya.display.Sprite; import laya.utils.Browser; import laya.webgl.WebGL; public class HelloLaya { publi...

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

43. 创建动画时画布的width和height与 实例化后的ani.size(width, height) 有什么区别 [ 65%]

...引 this.aniBirdSing.zOrder = 1; this.aniBirdSing.play(); this.aniBirdSing.pivot(0, 120); this.aniBirdSing.pos(94+0, 259+120); this.aniBirdSing.size(120, 120); console.log(this.aniBirdSing.width, this.aniBirdSing.height); this.aniBirdSing.mouseEnable = true; Laya.stage.addChild(this.aniBirdSing); } ...

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

44. 显示与切换图片(TypeScript-LayaAir基础篇(TS)-位图) [ 64%]

...): void { this.ape = new Sprite(); Laya.stage.addChild(this.ape); this.ape.pivot(55, 72); this.ape.pos(100,50); // 显示默认纹理 this.switchTexture(); this.ape.on("click", this, this.switchTexture); } private switchTexture(): void { var textureUrl: string = (this.flag = !this.flag) ? this.textu...

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

45. 动画实例在调用含有名字参数的时候获取不到边界 [ 64%]

...(); let bounds = this.playerUnit[i].getGraphicBounds(); this.playerUnit[i].pivot(bounds.width / 2, bounds.height / 2); this.playerUnit[i].scaleX=300/bounds.width; this.playerUnit[i].scaleY = 300/bounds.height; this.playerUnit[i].pos(200,400); Laya.stage.addChild(this.playerUnit[i]); } this.playerUni...

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

46. 显示与切换图片(JavaScript-LayaAir基础篇(JS)-位图) [ 64%]

...ction onAssetsLoaded() { ape = new Sprite(); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.pos(200, 200); // 显示默认纹理 switchTexture(); ape.on("click", this, switchTexture); } function switchTexture() { var textureUrl = (flag = !flag) ? texture1 : texture2; // 更换纹理 ape.graphics.c...

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

47. 发现一个问题Laya.Animation()创建后移除,再创建,位置会变 [ 63%]

...同来自: 找到原因了, //var bounds = ani.getGraphicBounds(); //ani.pivot(bounds.width / 2, bounds.height / 2);   加了这个,第次创建会you有问题 2018-04-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zjwytqm 相关...

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

48. 精灵响应... [ 63%]

...,从而赋给材质? 和创建精灵一样new Rand()出错 设置pivot后,精灵位置显示位置不正确 给每个精灵绑定点击事件,但点击精灵的时候时而触发时而不触发点击事件 服务器websocket c++发送二进制类型包,客户端没有任何事件响应...

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

49. api提问 [ 63%]

... 还是发生了改变 或者格式问题? 官方的API为什么找不到pivotpos? 问题状态 最新活动: 2018-03-30 09:53 浏览: 759 关注: 2 人

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

50. 关于API搜索的疑问?? [ 62%]

...于TS环境下的第三方库导入的疑问 官方的API为什么找不到pivotpos? ui组件list数据源的疑问 Animation用法疑问 关于新版的引擎示例中的一点疑问? 问题状态 最新活动: 2018-03-31 22:25 浏览: 571 关注: 2 人

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