Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Is there a way to fade into an animation?

Discussion in 'Animation' started by SeanGause, Sep 3, 2017.

  1. SeanGause

    SeanGause

    Joined:
    Dec 24, 2015
    Posts:
    127
    I have an animation that I want to play when a player opens a door. If the player is facing / walking backward and they hit the trigger for the animation, the camera snaps to the first frame. Would there be a way to turn them around and then play the animation? Or to "smooth" into the animation from whatever angle the camera is at?
    Please help! I've been looking online for hours to no avail.
     
  2. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
    The best method I know of is to create a turning animation, and use that as a transition state from facing away to opening the door.
     
    TonyLi likes this.
  3. TonyLi

    TonyLi

    Joined:
    Apr 10, 2012
    Posts:
    12,670
    To supplement theANMATOR2b's good answer, you might want to use target matching to ensure that the player ends up in front of the door. In any event, you'll probably need a script to play a turning-in-place animation until the player is facing the right direction, or until the player cancels the action by moving away.
     
    theANMATOR2b likes this.