大约有 261 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)
Tween的to方法可以变化target的scrollRect属性吗? 就像题目说的那样。 2018-02-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 你把属性按正确的放进去不就...
来源: Laya_社区 发布时间: 20180227
物理使用scrollrect错位问题 我在论坛里搜过类似的问题, 但是我这样设置了worldroot还是会错位, 哪里出问题了呢, 求解答 Laya.Physics.I.worldRoot = this.road; this.road.scrollRect = new Laya.Rectangle(0, 100, this.width, this.height); 2020-10-11 添加评论 免...
来源: Laya_社区 发布时间: 20201011
... tRec = _cacheStyle.cacheRect; if (sprite._style.scrollRect) { var scrollRect = sprite._style.scrollRect; tRec.x -= scrollRect.x; tRec.y -= scrollRect.y; } CacheStyle...
来源: Laya_社区 发布时间: 20210615
...ties alpha blendMode dragging hitArea pivotX pivotY rotation scaleX scaleY scrollRect skewX skewY viewport EMPTY Methods recover reset create Constructors constructor new SpriteStyle(): SpriteStyle Defined in laya/display/css/SpriteStyle.ts:38 Returns SpriteStyle Properties alpha alpha: number Defin...
来源: Laya3.0_api 发布时间: 20231115
...h = width; content.height = height; content._style.scrollRect || (content.scrollRect = Rectangle.create()); content._style.scrollRect.setTo(rectX, rectY, width, height); content.scrollRect = content.scrollRect; } 附件 : --> Bug文本.zip 2021-1...
来源: Laya_社区 发布时间: 20211108
...情况。 如果只是为了实现区域裁剪的功能,使用组件的scrollRect属性去设置可现实区域即可。 var rect = sprite.scrollRect || new Rectangle(); rect.setTo(0, 0, 1000, 600); sprite.scrollRect = rect; 2019-03-01 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回...
来源: Laya_社区 发布时间: 20190301
...这时的人物可以移动,但是视图不会滚动。移动视图通过scrollRect,或者使用基于区块的组合地图。你直接移动stage的做法不可取,就算要移动,也不要直接移动stage,就算移动的是其他容器,也请用 container.x,而不是 container._x。...
来源: Laya_社区 发布时间: 20170719
...: 1、List空白部分在最新版本中实际是点击到了List下的scrollRect这个sprite导致返回的是这个scrollRect,所以没有穿透,可以参考下图中的getSelfBounds的断点内容。 2、最新版本针对mouseThrough为true的情况,会根据当前sprite是否存在scrol...
来源: Laya_社区 发布时间: 20250825
...rr,_path); SetPathArr(arr2,_path2); //注释下面这行就正常了 _path.scrollRect = new Rectangle(0,0,(len-3)*PATH_LEN-30,58); _path2.scrollRect = new Rectangle(0,0,(len-3)*PATH_LEN-30,58); //_path.viewPort = new Rectangle(0,0,(len-3)*PATH_LEN-30,58); btn_start.clickHandler = new Handler(this,St...
来源: Laya_社区 发布时间: 20171129
...APP后跑地图时摄像机不跟随了,项目摄像机跟随原理是用scrollRect来实现的,经输出日志发现坐标是在改变的 如下: 2019-03-12 14:44:46.578 21974-22063/com.diablo.game I/LayaBox: ===_cameraView===430.430809642804,0 2019-03-12 14:44:46.611 21974-22063/com.diablo...
来源: Laya_社区 发布时间: 20190312