docs.unity3d.com
    目次を表示する/隠す

    Struct IMECompositionString

    A struct representing an string of characters generated by an IME for text input.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    Namespace: UnityEngine.InputSystem.LowLevel
    Syntax
    public struct IMECompositionString : IEnumerable<char>, IEnumerable
    Remarks

    This is the internal representation of character strings in the event stream. It is exposed to user content through the OnIMECompositionChanged(IMECompositionString) method. It can easily be converted to a normal C# string using ToString(), but is exposed as the raw struct to avoid allocating memory by default.

    Constructors

    IMECompositionString(String)

    Declaration
    public IMECompositionString(string characters)
    Parameters
    Type Name Description
    String characters

    Properties

    Count

    Declaration
    public readonly int Count { get; }
    Property Value
    Type Description
    Int32

    Item[Int32]

    Declaration
    public readonly char this[int index] { get; }
    Parameters
    Type Name Description
    Int32 index
    Property Value
    Type Description
    Char

    Methods

    GetEnumerator()

    Declaration
    public IEnumerator<char> GetEnumerator()
    Returns
    Type Description
    IEnumerator<Char>
    Implements
    IEnumerable<T>.GetEnumerator()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    ValueType.ToString()

    Explicit Interface Implementations

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    IEnumerator
    Implements
    IEnumerable.GetEnumerator()
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)