Delete animation of a certain bone for a number of frames Unity3d

342 views Asked by At

I have an animation of a Mecanim. I wonder how I can delete the animation of only the right-hand for the next couple of frames once I press a certain key in the LateUpdate() function

void LateUpdate () 
    {
        if (Input.GetKeyDown (KeyCode.D)) 
        {
            //delete the next lets say 100 frames of only the right-hand
        }
    }

If anyone could please advise how this can be done?

1

There are 1 answers

4
Aizen On BEST ANSWER

Comment is getting Bigger So I will paste it in here.

https://www.youtube.com/watch?v=Xx21y9eJq1U

In this video try to check the 44:51 ish or something. That is what you need. Then Control it with a script when to activate it.

It is a Masking. You can mask the animation and so on. You will get the idea when you watch this.