Search Unity

Question Force Transform update when manually updating Animator/Playable Graph

Discussion in 'Animation' started by ShadyMike, Jan 29, 2022.

  1. ShadyMike

    ShadyMike

    Joined:
    Apr 14, 2013
    Posts:
    60
    Hi,

    updating a Playable graph or an Animator manually does not seem to affect the Transforms immediately. Is there a way to force updating the Transforms immediately?

    I need the ability to update an Animator multiple times a frame and do Raycasts for combat logic, so that it is consistent and framerate-independent.

    Thanks in advance.
     
  2. Kybernetik

    Kybernetik

    Joined:
    Jan 3, 2013
    Posts:
    2,570
    Animator.Update does nothing when you're using Playables. You need to use PlayableGraph.Evaluate instead.