Changes one GameObject's transform to follow another GameObject's transform.
public enum FollowMoment- The moment at which to follow.
OnFixedUpdate- Follow in the FixedUpdate method.
OnUpdate- Follow in the Update method.
OnLateUpdate- Follow in the LateUpdate method.
OnPreRender- Follow in the OnPreRender method. (This script doesn't have to be attached to a camera).
OnPreCull- Follow in the OnPreCull method. (This script doesn't have to be attached to a camera).
public override void Follow()
gameObjectToFollow using the current settings.
Updated less than a minute ago
Did this page help you?