- Home /
Unity isn't recognizing "PlayerControls" properly
I am trying to make a controller game, but Unity isn't recognizing "PlayerControls" properly, and I can't use the gamepad support.
Here is the error:
error CS0246: The type or namespace name 'PlayerControls' could not be found (are you missing a using directive or an assembly reference?)
And here is the script:
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.InputSystem;
public class Controller : MonoBehaviour { private PlayerControls controls; //error here private Vector3 playerSpeed;
void Awake()
{
controls = new PlayerControls();
}
}
Comment