Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Average between two Animation Layers

Discussion in 'Animation' started by DragonCoder, May 8, 2023.

  1. DragonCoder

    DragonCoder

    Joined:
    Jul 3, 2015
    Posts:
    1,635
    Hello Community,

    how do I blend between two layers in such a way that the actual animated values take the average between the two animation clips?

    What I want to achieve is that a specific animation looks more "professional" for a character that has a higher "skill" and looks janky at low skill.
    For this I have created a professional and a janky animation clip of exactly the same length, then duplicated my animation layer, swapped the clips and set the weight of the layers depending on the skill (normalized, so that one of the layers is always at 100% weight).

    The result is not as expected however. With the layers are in "override" mode only the lowest of the layers is used at all and in "additive" mode, it's entire nonsense because I do not want to add values.

    How comes there is no "blend" or "average" mode?
    Am I looking at the wrong mechanism for this?

    Huge thanks in advance!
     
  2. Kybernetik

    Kybernetik

    Joined:
    Jan 3, 2013
    Posts:
    2,540
    A 1D Blend Tree would likely do a much better job than layers.