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

Jump to a specific frame in an animation

Discussion in 'Animation' started by grimmreefer, Apr 10, 2015.

  1. grimmreefer

    grimmreefer

    Joined:
    Jan 15, 2015
    Posts:
    31
    Hi, i know this question often get asket, but i cant solve my problem. I'm not sure if it because of Unity 5 but ...

    animation["Idle"].time = 2.45;

    ...didnt work.

    The error says this function is obsolet.
     
  2. grimmreefer

    grimmreefer

    Joined:
    Jan 15, 2015
    Posts:
    31
    Omg, i dont know why but suddenly Unity Updated my Script and i got working code.

    GetComponent<Animation>()["Idle"].time = 2.45F;

    Can be closed.