Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Help Wanted Animation Rigging - Control Rig weight via common animation

Discussion in 'Animation' started by unity_2NXt9HePrLECuw, Jul 16, 2020.

  1. unity_2NXt9HePrLECuw

    unity_2NXt9HePrLECuw

    Joined:
    Jul 16, 2020
    Posts:
    1
    Hi,

    I guess what I want to do should work, but it doesnt:

    My goal is to have two separate Rigs -> One for "Weapon Idle" (weapon is holded by my character, but hes not aiming) and one for aiming (weapon is aiming to direction of camera center). The Rigs are working fine. My problem is that Im unable to fade between these states. I have planned to fade the overriding one in and out, depending on player input.

    What I have tried:

    I have set up an Animation Rigging System as you have shown in your introduction video. As said before, the rigs are working fine.

    upload_2020-7-16_22-22-16.png

    To fade in and out the "RigLayer-WeaponAim" component I made an animation:

    upload_2020-7-16_22-30-51.png

    upload_2020-7-16_22-31-22.png

    I configured this inside my prefab. And if i play my animation here in preview, it works.

    But if I put this in my AnimationController, the weight of the rig is not affected, although the animation is played as expected.

    upload_2020-7-16_22-35-7.png

    Weight should be 1 now. But if I toggle the animation in preview mode, it works and properly affect my character...

    upload_2020-7-16_22-36-54.png

    Do you have an idea what i maybe do wrong?

    Greets

    Mikel
     
unityunity