大约有 412 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0039 秒)
Laya_社区(172) Laya3.0_api(85) Laya3.0_文档(67) Laya2.0_api(43) laya_api(23) Laya2.0_文档(21) Laya2.0_示例(1)
... isTrigger : Boolean 获取是否为触发器。 PhysicsTriggerComponent owner : Node [只读]获取所属Node节点。 Component restitution : Number 获取弹力。 PhysicsComponent rollingFriction : Number 获取滚动摩擦力。 PhysicsComponent simulation : PhysicsSimulation[read-only] ...
来源: Laya2.0_api 发布时间: 20190513
...节的连接刚体,可不设置,默认为左上角空刚体RopeJoint owner : Node [只读]获取所属Node节点。 Component selfAnchor : Array[首次设置有效]自身刚体链接点,是相对于自身刚体的左上角位置偏移RopeJoint selfBody : RigidBody[首次设置有效]关...
来源: Laya2.0_api 发布时间: 20190513
...ender=renders ; if (camera._isLayerVisible(render._owner._layer)&& render._enable){ Stat.frustumCulling++; if (!camera.useOcclusionCulling || render._needRender(boundFrustum)){ ...
来源: Laya_社区 发布时间: 20190711
... otherBody : RigidBody[首次设置有效]关节的连接刚体WeldJoint owner : Node [只读]获取所属Node节点。 Component selfBody : RigidBody[首次设置有效]关节的自身刚体WeldJointProtected Properties Hide Inherited Protected Properties Show Inherited Protected Properties P...
来源: Laya2.0_api 发布时间: 20190513
...否为单实例组件。 ColliderBase label : String标签ColliderBase owner : Node [只读]获取所属Node节点。 Component restitution : Number弹性系数,取值范围0-1,值越大,弹性越大,默认值为0ColliderBase rigidBody : RigidBody[只读]刚体引用ColliderBasePub...
来源: Laya2.0_api 发布时间: 20190513
....spRole.texture.sourceHeight = Laya.stage.height; //添加2D精灵, this.owner.addChild(this.spRole); this.spRole.pos(0, 0); this.spRole.size(Laya.stage.width, Laya.stage.height); }); 2025-01-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定,...
来源: Laya_社区 发布时间: 20250109
...math.ContainmentType.Contains*/1) // return true // } var worldMat = other.owner.transform.worldMatrix; var vec = new Vector3(); for (var i = 0, iLen = positions.length; i < iLen; i++) { Vector3.transformCoordinate(positions[i], worldMat, vec); if (Collision.sphereContainsPoint(this.boundSphere, ...
来源: Laya_社区 发布时间: 20181114
...此方法只执行一次 */ onAwake() { //得到3D对象 this.obj = this.owner; } onStart() { } /** * 覆写组件更新方法(相当于帧循环) */ onUpdate() { //所属脚本对象旋转更新 this.obj.transform.rotate(this.rotation, false, false) } onDisable() { console.log("组件设置为...
来源: Laya_社区 发布时间: 20200611
...this.skeleton = new SpineSkeleton(); this.skeleton.templet = templet; this.owner.addChild(this.skeleton); this.skeleton.pos( this.pageWidth / 2, this.pageHeight / 2 + 100); this.skeleton.scale(0.4, 0.4); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); }); } private play(): void {...
来源: Laya_社区 发布时间: 20230703
...ad-only] 获取播放器当前动画的节点数量。 KeyframeAnimations owner : Sprite3D[read-only] 获取所属Sprite3D节点。 Component3D player : AnimationPlayer[read-only] 获取动画播放器。 KeyframeAnimations started : Boolean是否已执行start函数。Component3D templet : Anim...
来源: laya_api 发布时间: 20170603