Been following of the main Unity tutorials for animation, and along the way I’m getting this error: "Parameter ‘Speed’ does not exits. I’m following the tutorial yet I don’t know why it’s saying ‘Speed’ does not exist.
Here’s my own script so far (C#):
using UnityEngine;
using System.Collections;
public class BRAnimScript : MonoBehaviour
{
Animator anim;
int idleHash = Animator.StringToHash("BR Idle");
// Use this for initialization
void Start ()
{
anim = GetComponent<Animator>();
}
// Update is called once per frame
void Update ()
{
float move = Input.GetAxis ("Vertical");
anim.SetFloat("Speed", move);
if (Input.GetKeyDown (KeyCode.Space))
{
anim.SetTrigger (idleHash);
}
}
}