Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Input.inputString Unicode input

Discussion in 'Windows' started by koblykdmitry, Feb 28, 2014.

  1. koblykdmitry

    koblykdmitry

    Joined:
    Jan 17, 2014
    Posts:
    14
    Hi,

    I am using Input.inputString to handle user input. When we type not ASCII characters(Russian letters for example) we get only one byte of symbol unicode representation. For letter 'р' we get '@' and so on. How we can solve this problem?

    P.S. Unity GUI.TextField works right.

    Thanks.
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,644
    Hi,

    Confirmed, please report a bug.
    I'll try to look for a workaround.
     
  3. koblykdmitry

    koblykdmitry

    Joined:
    Jan 17, 2014
    Posts:
    14
  4. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,644
    Here's workaround:

    OnGUI() is called multiple times per frame and you get characters one by one, but these are proper Unicode characters.
     
  5. Nirav-Madhani

    Nirav-Madhani

    Joined:
    Jan 8, 2014
    Posts:
    27
    so , can it detect up , down , left , right ,etc ?