It’s not my own animator controller.
And when i’m getting to the blend tree i don’t see any parameters for it or/and variables to use from a script.
When i make double click on the Grounded i’m getting to this:
For example i want to make a combination of walking and idle. So if i press on the key W the character will walk and then when i leave the W key it will slowly change to idle. And same from idle to walk.
In my script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CC : MonoBehaviour
{
private Animator _anim;
private void Start()
{
_anim = GetComponent<Animator>();
}
void Update()
{
var x = Input.GetAxis("Horizontal");
var y = Input.GetAxis("Vertical");
Move(x, y);
}
private void Move(float x, float y)
{
_anim.SetFloat("", x);
_anim.SetFloat("", y);
}
}
Do i need to add on my own some parameters to this blend tree like in the tutorial in minute 4:03 ?