How to get a Blend Tree Object from Animator in Unity

Viewed 32

I have an Animator object. And there is a blend tree in one of its states (named "normal_state"). I want to gain this BlendTree object by code. How to do?

private BlendTree blendtree;
public Animator ani;
// Start is called before the first frame update
void Start()
{
    //blendtree=???
}
0 Answers
Related