言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Input.compositionCursorPos

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static var compositionCursorPos: Vector2;
public static Vector2 compositionCursorPos;
public static compositionCursorPos as Vector2

Description

IMEで開くウィンドウに使用される現在のテキスト入力の位置

日本語のような幾つかの言語のIMEはユーザーにテキストを入力させるためにウィンドウを開き、 正しい文字の入力を手助けします。これらのウィンドウは現在のカーソルの位置にポップアップ表示されるものとして期待されています。 よってIMEは入力が表示されている場所を知る必要があります。テキスト入力でUnityのビルドインGUIシステムを使用する時、 UnityはIMEのためにカーソル位置を設定するのを手助けします。ですが、テキスト入力のために自作のGUIを実装する場合には、 IMEのウィンドウを正しく表示するために現在のテキスト入力の位置を 設定する必要があります。 See Also: Input.imeCompositionMode, Input.compositionString.