大约有 499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0057 秒)
Laya_社区(347) Laya2.0_文档(56) Laya3.0_文档(37) Laya_示例(23) Laya3.0_api(14) Laya2.0_示例(10) Laya2.0_api(8) laya_api(4)
...gn === "middle") startY = (this._height - visibleLineCount * lineHeight) * 0.5 + padding[0] - padding[2]; else if (tempVAlign === "bottom") startY = this._height - visibleLineCount * lineHeight - padding[2]; }; var style = this._style; if (tCurrBitmapFont && tCurrBitmapFont.autoScaleSize) { ...
来源: Laya_社区 发布时间: 20180417
... SphereColliderShape 实例。 Parameters Default value radius: number = 0.5 半径。 Returns CannonSphereColliderShape Properties needsCustomCollisionCallback needsCustomCollisionCallback: boolean = false Inherited from CannonColliderShape.needsCustomCollisionCallback Defined in laya/d3/physicsCan...
来源: Laya3.0_api 发布时间: 20231102
...04424 • 2018-02-11 16:41 if (e.delta > 0 && this.scaleX >= 0.5) { this.scaleX -= 0.1; this.scaleY -= 0.1; for (var i = 0; i < this.nodes.length; i++) { this.nodes[i].scaleX += 0.1; this.nodes[i].scaleY += 0.1; } } else if (e.delta < 0 && this.scaleX <= 1.5) { this.sc...
来源: Laya_社区 发布时间: 20180211
...mImg.graphics.drawTexture(this._texture, 0, 0, RouletteTableScene.ZOOM_W * 0.5, RouletteTableScene.ZOOM_TARGET_H * 0.4); 2017-10-31 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 cuixueying 相关问题 分享:LayaAir下Loading进...
来源: Laya_社区 发布时间: 20170822
...t: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标的竖直高度参数 public distanceAway: number = 10;//相机与目标的水平距离参数 public smooth: number = 2;//位置平滑移动插值参数值 public camDepthSmooth: number = 20 public curpos...
来源: Laya3.0_文档 发布时间: 20251010
...lta / 1000 * this.scaleSpeed; const scale = 1 + Math.sin(this.scaleTime) * 0.5; // 增加缩放变化幅度 this.lightComp.lightScale.setValue(scale, scale); } } 运行的效果如动图3-1所示, (动图3-1) Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间...
来源: Laya3.0_文档 发布时间: 20251010
...omponent.color = new Laya.Color(1, 1, 1); spritelightComponent.intensity = 0.5; let tex = Laya.loader.getRes("resources/spritelight.png"); spritelightComponent.spriteTexture = tex; } // 配置方向光 setDirectLight(): void { let directlithtComponent = this.directLight.getComponent(Laya.DirectionLi...
来源: Laya3.0_文档 发布时间: 20251010
...VV(p6, p4)).concat(B2Math.SubVV(p5, p4)).join(","); } const dampingRatio = 0.5; const frequencyHz = 10.0; let distanceJoint1 = new Laya.DistanceJoint(); distanceJoint1.otherBody = legBody2; distanceJoint1.selfAnchor = p2; distanceJoint1.otherAnchor = B2Math.SubVV(p5, p4); distanceJoint1.frequency = ...
来源: Laya2.0_示例 发布时间: 20260303
...,在属性面板,设置轴心点属性`anchorX`与`anchorY`的值为`0.5`,然后设置`Button`宽高与轴心点的xy轴位置,如图9所示。 (图9) *Tips:轴心点效果需要在UI中的组件属性中设置,在动效模板中设置轴心点效果对组件无效。* **...
来源: Laya2.0_文档 发布时间: 20210715
...碰撞器`BoxCollider`,将他的`restitution` 弹力系数属性设置为0.5,使其拥有弹力。再给折梯的底部做一个小山坡,拖入一个三角形,添加多边形碰撞器`PolygonCollider` ,并将三角形的`RigidBody`刚体类型设置为`Kinematic` 运动类型,使其不...
来源: Laya2.0_文档 发布时间: 20210714