大约有 278 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
Laya_社区(173) Laya3.0_api(61) Laya2.0_示例(19) Laya_示例(17) Laya3.0_文档(5) laya_api(2) Laya2.0_api(1)
...var bounds:Rectangle = ani.getGraphicBounds(); ani.pivot(bounds.width / 2, bounds.height / 2); ani.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(ani); ...
来源: Laya_社区 发布时间: 20180725
...型动画抖动的问题 2.1 spine 动画播放出现抖动的bug修复 将pivot设置为图片中心后,缩放结点,碰撞体和图片不是以相同锚点缩放 圆环不跟随 sprite 一起缩放? 2.5引擎版本webgl使用遮罩动态变换位置和缩放时,会有线条,并未遮罩...
来源: Laya_社区 发布时间: 20200410
...is.mArmature.y = bound.height;//this.mStartY; // this.mArmature.pivot((bound.width / 2) | 0, (bound.height / 2) | 0)//(图2) 这样不行! 2017-07-03 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 能把你的例子提供下吗,我们看下,谢谢! 2017-07-03 0 1 分享 ...
来源: Laya_社区 发布时间: 20161122
...rite().loadImage("images/qiang_001.png"); gun_skin.scale(50, 50); gun_skin.pivot(gun_skin.width / 2, gun_skin.height / 2); gun = Bodies.rectangle(150, 150, 50, 50, { frictionAir: 0.5, //空气摩擦力 density: 0.68, // 密度 layaSprite: gun_skin, // 绑定一个laya的Sprite, 不能用render.sprit...
来源: Laya_社区 发布时间: 20180522
...疑问 laya2.0 3d物理碰撞穿透问题 斜矩形怎么计算碰撞 将pivot设置为图片中心后,缩放结点,碰撞体和图片不是以相同锚点缩放 laya 3D碰撞器与 Unity 不一致问题 代码重用和公共函数的疑问,在TS里怎么使用? ui组件list数据源的疑...
来源: Laya_社区 发布时间: 20161202
...物理碰撞问题 matter.js mouseconstraint在微信小游戏中无效 将pivot设置为图片中心后,缩放结点,碰撞体和图片不是以相同锚点缩放 问题状态 最新活动: 2020-08-24 18:18 浏览: 1577 关注: 3 人 Laya_Aaron • 2018-07-15 15:18 引擎是有限的,人力...
来源: Laya_社区 发布时间: 20180715
...心点为显示对象的中心,显示位置在可拖拽区域之内 sp.pivot(sp.width/2,sp.height/2); sp.pos(250,450); Laya.stage.addChild(sp); //为需要滑动的对象添加down,down下开始move,up时移除move和up事件 sp.on(Event.MOUSE_DOWN,this,onDown); Laya.stage.on(Event.MOUSE_UP,th...
来源: Laya_社区 发布时间: 20170106
...像素。 2.2.3 锚点 Anchor 在讲解锚点之前需要先知道轴心点Pivot的概念。一个Sprite精灵对象默认的轴心点位于自身的左上角,设置Sprite精灵的位置时默认是以左上角为基准进行定位的。 轴心点是基准点,决定着Sprite在舞台的位置。...
来源: Laya3.0_文档 发布时间: 20251010
...Texture: Laya.Texture init(){ let rect = this.img.getSelfBounds() this.img.pivot(Math.round(rect.width / 2), Math.round(rect.height / 2)) let bound = this.img.getBounds() this.cacheCanvas = this.img.drawToCanvas(Math.ceil(bound.width), Math.ceil(bound.height), Math.round(bound.width / 2), Math.round...
来源: Laya_社区 发布时间: 20171211
...ay(0, true, 'loading') this.bounds = this.fly.getGraphicBounds(); this.fly.pivot(this.bounds.width / 2, this.bounds.height / 2); this.fly.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.diango.addChild(this.fly) this.diango.show(); this.diango.popup(); } _proto.onClose = function () { this.di...
来源: Laya_社区 发布时间: 20171107