Answers for "unity input not working"

2

unity input system not working

//add this somewhere in your script
//PlayerControls is the Input action script

PlayerControls controls;

private void Awake()
{
	controls = new PlayerControls();
}

private void OnEnable()
{
	if (usingController)
	{
		controls.Gameplay.Enable();
	}
}

private void OnDisable()
{
	if (usingController)
	{
		controls.Gameplay.Disable();
	}
}
Posted by: Guest on March-17-2021
1

unity input manager not working

for me, 
I had 1 control scheme for both keyboard ad gamepad.
Player no spawn
I split into two controls schemes, 1 for keyboard adnd 1 for gamepad
Player spawn
Posted by: Guest on August-25-2021

Code answers related to "unity input not working"

Browse Popular Code Answers by Language