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

Question How to make animations have a locked transform?

Discussion in 'Animation' started by clurpslurp, Jul 19, 2023.

  1. clurpslurp

    clurpslurp

    Joined:
    Jul 3, 2023
    Posts:
    23
    I’m trying to create something, when your mouse clicks an object, it will play an animation where the character, regardless of their current position or rotation, will snap into a certain position with a certain rotation and do their animation. Almost like a cutscene, except the player can move the camera.
    Is there a way to achieve this?
    I’m not too familiar with how unity animations work, so I’ve just been trying to key the player to the desired position on its first key frame, but I’m not sure it works that way
     
  2. pablobandinopla

    pablobandinopla

    Joined:
    Jul 2, 2021
    Posts:
    97
    you could do that with a Timeline sequence set to wrap mode to "none". With 2 Animation tracks, one for the positioning and rotation of the object in the desired place and the other to trigger the right animation clip of your model.
     
    clurpslurp likes this.