xxxxxxxxxx
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
xxxxxxxxxx
using UnityEngine;
using UnityEngine.UI;
public class InputFieldExample : MonoBehaviour
{
private InputField inputField;
private void Start()
{
// Assuming the input field component is attached to the same GameObject
inputField = GetComponent<InputField>();
// Add an event listener to the input field's 'End Edit' event
inputField.onEndEdit.AddListener(OnInputEndEdit);
}
private void OnInputEndEdit(string text)
{
Debug.Log("Input Field text: " + text);
// Additional logic or handling of the input field's text
}
}