Search Unity

  1. New Unity Live Help updates. Check them out here!

    Dismiss Notice

TextField cannt input chinese

Discussion in 'UI Toolkit' started by wang37921, Jan 25, 2019.

  1. wang37921

    wang37921

    Joined:
    Aug 1, 2014
    Posts:
    73
    Use Google's Pinyin ime.
     
  2. jeanfrancois_unity

    jeanfrancois_unity

    Unity Technologies

    Joined:
    Oct 24, 2018
    Posts:
    4
    Can you confirm the Unity version you are using and that this behaviour is with UIElements TextField ?
     
  3. wang37921

    wang37921

    Joined:
    Aug 1, 2014
    Posts:
    73
    Unity 2018.3.0f2
     
  4. Seto

    Seto

    Joined:
    Oct 10, 2010
    Posts:
    230
    The same here.
    2019.1.0b6
     
  5. Seto

    Seto

    Joined:
    Oct 10, 2010
    Posts:
    230
    @jeanfrancois_unity When will it be resolved? It's the main issue keep us away from it. Not only Chinese, but also Japanese can't be inputted.
     
  6. benoitd_unity

    benoitd_unity

    Unity Technologies

    Joined:
    Jan 2, 2018
    Posts:
    155
    It's in the backlog but sadly we have no ETA.
     
  7. Seto

    Seto

    Joined:
    Oct 10, 2010
    Posts:
    230
    It's just in the backlog or it's being fixed? If it's not fixed. I can't even use it for real projects.
     
  8. antoine-unity

    antoine-unity

    Unity Technologies

    Joined:
    Sep 10, 2015
    Posts:
    126
    We're looking into it as a bug and planning to fix it but the issue seems to affect the Editor at large and require coordination with some other teams.
     
  9. Seto

    Seto

    Joined:
    Oct 10, 2010
    Posts:
    230
    I finally find out a workaround for it. Could you please apply TextField by default?
    Code (CSharp):
    1.             m_TextField = new TextField();
    2.             m_TextField.RegisterCallback<FocusInEvent>(evt => { Input.imeCompositionMode = IMECompositionMode.On; });
    3.             m_TextField.RegisterCallback<FocusOutEvent>(evt => { Input.imeCompositionMode = IMECompositionMode.Auto; });
     
    YuGu_Chang likes this.
unityunity