Interface ITextInputReceiver | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Interface ITextInputReceiver

    Interface for InputDevice that can receive text input events.

    Namespace: UnityEngine.Experimental.Input
    Syntax
    public interface ITextInputReceiver

    Methods

    OnIMECompositionChanged(IMECompositionString)

    Called when an IME composition is in-progress or finished.

    Declaration
    void OnIMECompositionChanged(IMECompositionString compositionString)
    Parameters
    Type Name Description
    IMECompositionString compositionString

    The current composition.

    Remarks

    The method will be repeatedly called with the current string while composition is in progress. Once composition finishes, the method will be called one more time with a blank composition string.

    See Also
    onIMECompositionChange

    OnTextInput(Char)

    A single, fully-formed Unicode character has been typed on the device.

    Declaration
    void OnTextInput(char character)
    Parameters
    Type Name Description
    System.Char character

    Character that was typed. Note that in case the character is part of a surrogate pair, this method is called first with the high surrogate and then with the low surrogate character.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023