Answers for "how to use both input systems unity"

C#
3

how to use input field unity

public string theName;
    public GameObject inputField;
    public GameObject textDisplay;
    
    public void StoreName()
    {
        theName = inputField.GetComponent<Text>().text;
        textDisplay.GetComponent<Text>().text = theName;
    }
Posted by: Guest on May-28-2021
-1

unity new input system why cant i make a reference

private Controls inputs;

	void Start{
		inputs = new Controls();
    }
Posted by: Guest on August-24-2021

C# Answers by Framework

Browse Popular Code Answers by Language