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

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

421. 如何改变text部分字的颜色或两个不同颜色的text如何拼接看起来像一个文本? [ 51%]

...不同颜色。 但是两个text拼接的话好像又没法判断在多少距离的时候拼接,因为玩家昵称长短也不一样。而width属性是文本框长度,非文字长度。   更复杂的情况类似装备名字写在文字里面, 这样要分更多段了 请问:layaAir有没...

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

422. laya 2.0 box2d 重力缩放系数 和 重力系数的关系 [ 51%]

...间,还是上面我说的,你可以算算重力加速度是每秒多少距离(现实生活中是单位米、在Laya里则是像素),重力加速度算出来了,那物体在空中停留的时间就 = 物体初速度/重力加速度 * 2,要控制时间,就把公式套进去算物体初...

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

423. 射线BUG [ 51%]

... this.ray); //射线检测,射线相交的<最近物体>,最大检测距离30米,只检测第13层 Laya.Physics.rayCast(this.ray, this._outHitInfo, 30, 13); if (this._outHitInfo.distance !== -1){ alert("666"); } this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, state); //绘出射线 this.ph...

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

424. laya.ui.TextInput_API3.0 [ 51%]

...i/UIComponent.ts:179 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 Returns number Inherited from UIComponent.bottom Defined in laya/ui/UIComponent.ts:187 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 Parameters value...

来源: Laya3.0_api 发布时间: 20231115

425. 屏幕适配问题,ui自适应 [ 51%]

...会裁剪到的位置,那个位置放ui,或者UI就固定和屏幕的距离

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

426. laya.d3.core.BaseCamera [ 51%]

...distance:Number):void 向前移动。 Parameters distance:Number — 移动距离。 moveRight()method  public function moveRight(distance:Number):void 向右移动。 Parameters distance:Number — 移动距离。 moveVertical()method  public function moveVertical(distance:Number):void 向上移...

来源: laya_api 发布时间: 20170929

427. laya.ui.TextArea_API3.0 [ 51%]

...i/UIComponent.ts:179 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 Returns number Inherited from UIComponent.bottom Defined in laya/ui/UIComponent.ts:187 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 Parameters value...

来源: Laya3.0_api 发布时间: 20231115

428. 怎么设置panel滑动回弹效果呀,比如当滑动没有超过子元素宽度一半的时候,就返回去还是显示当前元素,超过一半就往前运动显示下一个元素。 [ 51%]

...11:29 已经设置了滚动条,可是没有找到每次滚动超过多少距离时,松手回弹或者滚动的效果。 RayFor24 • 2018-01-09 11:32 现在的panel 就是滑动停止也就停止了 雨落丶尘埃 • 2018-06-26 20:54 list里有scrollRect这个 panel没看到scrollRect这属性...

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

429. laya.physics.joint.DistanceJoint_API3.0 [ 51%]

...obals "laya/physics/joint/DistanceJoint" DistanceJoint Class DistanceJoint 距离关节:两个物体上面各自有一点,两点之间的距离固定不变 Hierarchy JointBase DistanceJoint Index Constructors constructor Properties _extra _singleton collideConnected otherAnchor otherBody owner r...

来源: Laya3.0_api 发布时间: 20231115

430. [LayaAir3]开关Instancing效果有区别 [ 50%]

...3 17:40 @layaAir小孟:所以开启Instancing之后就不再遵守 Forward 距离相机从近到远渲染的规则了吗? sp2的active置false再置true以后顺序就变成 sp2 & sp1, pass1 --> sp2 & sp1, pass2,这点很迷 Heured • 2024-08-13 17:47 @layaAir小孟:还是说enableInst...

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