/// <summary> /// Returns a Tween instance that is configured to animate a Transform.eulerAngles property /// </summary> /// <param name="component">The component to be animated</param> /// <param name="useShortestPath">If set to TRUE, the rotation will follow the shortest path.</param> /// <param name="useLocalRotation">If set to TRUE, then Transform.localEulerAngles will be animated instead of Transform.eulerAngles</param> public static Tween <Vector3> TweenRotation(this Component component, bool useShortestPath, bool useLocalRotation) { return(TweenTransformExtensions.TweenRotation(component.transform, useShortestPath, useLocalRotation)); }
public static Tween <Vector3> Rotation(Transform transform, bool useShortestPath, bool useLocalRotation) { return(TweenTransformExtensions.TweenRotation(transform, useShortestPath, useLocalRotation)); }
/// <summary> /// Returns a Tween instance that is configured to animate a Transform.eulerAngles property /// </summary> /// <param name="component">The component to be animated</param> public static Tween <Vector3> TweenRotation(this Component component) { return(TweenTransformExtensions.TweenRotation(component.transform, true, false)); }
public static Tween <Vector3> Rotation(Transform transform) { return(TweenTransformExtensions.TweenRotation(transform)); }