Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

how to know what does the user type in and how to save that text into a variable?

darshkukrejadarshkukreja Member
edited August 2020 in Programming

please help

Best Answer

  • JIMMY_VASHI04JIMMY_VASHI04 Member
    Accepted Answer

    This is for c# not applicable for unity.

    int userinput = (int)Console.Readkey();
    //if you want another type just replace all int with that type
    

    If you want to check for unity use the input field ui element.

Sign In or Register to comment.