大约有 285 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0034 秒)
Laya_社区(78) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya2.0_示例(14) Laya_示例(11) Laya3.0_文档(6) Laya2.0_文档(5)
...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
...相关的链接 提交 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
...引 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
...): 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
...(); 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
...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
...同来自: 找到原因了, //var bounds = ani.getGraphicBounds(); //ani.pivot(bounds.width / 2, bounds.height / 2); 加了这个,第次创建会you有问题 2018-04-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zjwytqm 相关...
来源: Laya_社区 发布时间: 20180411
...,从而赋给材质? 和创建精灵一样new Rand()出错 设置pivot后,精灵位置显示位置不正确 给每个精灵绑定点击事件,但点击精灵的时候时而触发时而不触发点击事件 服务器websocket c++发送二进制类型包,客户端没有任何事件响应...
来源: Laya_社区 发布时间: 20170720
... 还是发生了改变 或者格式问题? 官方的API为什么找不到pivot和pos? 问题状态 最新活动: 2018-03-30 09:53 浏览: 759 关注: 2 人
来源: Laya_社区 发布时间: 20180329
...于TS环境下的第三方库导入的疑问 官方的API为什么找不到pivot和pos? ui组件list数据源的疑问 Animation用法疑问 关于新版的引擎示例中的一点疑问? 问题状态 最新活动: 2018-03-31 22:25 浏览: 571 关注: 2 人
来源: Laya_社区 发布时间: 20180331