Click or drag to resize

FollowTransform Class

Follow a Transform while keeping a certain distance.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Kit.BehavioursFollowTransform

Namespace:  Kit.Behaviours
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public class FollowTransform : MonoBehaviour
Request Example View Source

The FollowTransform type exposes the following members.

Methods
  NameDescription
Public methodFollow
Start following again if stopped.
Public methodFollow(Transform)
Follow a different Transform using the current distance between them.
Public methodFollow(Transform, Single)
Follow a different Transform at a specified distance.
Public methodStop
Stop following.
Top
Fields
  NameDescription
Public fieldDistance
The distance to keep while following.
Public fieldFace
Should it keep facing the target?
Public fieldMoveSpeed
The speed at which to follow.
Public fieldRotateSpeed
The speed at which to face.
Public fieldTarget
The target Transform to follow.
Top
Extension Methods
  NameDescription
Public Extension MethodDestroy
Destroy the object.
(Defined by UnityObjectExtensions.)
Public Extension MethodDisable
Set the enabled property to .
(Defined by BehaviourExtensions.)
Public Extension MethodEnable
Set the enabled property to .
(Defined by BehaviourExtensions.)
Public Extension MethodGetBounds

Returns the bounds of the Component.

(Defined by ComponentExtensions.)
Public Extension MethodIsPrefab
Returns whether the Component is a part of a prefab.
(Defined by ComponentExtensions.)
Top
See Also