Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Lerp timed to animation

Discussion in 'Scripting' started by pixelfixation, Jun 26, 2015.

  1. pixelfixation

    pixelfixation

    Joined:
    Feb 7, 2014
    Posts:
    29
    Is there currently a good way in unity 5 to lerp a game object and play an animation on its child and have the lerp and the animation finish at the Same time without hard coding the length of the animation? I think there used to be an animation.clip.length but no longer.
     
  2. GroZZleR

    GroZZleR

    Joined:
    Feb 1, 2015
    Posts:
    3,201
    pixelfixation likes this.
  3. pixelfixation

    pixelfixation

    Joined:
    Feb 7, 2014
    Posts:
    29
    Awesome dood thanks a lot.