public void SetImeWindowPosition(Vector2 worldPosition) { var cursorPos = m_TextHandle.GetCursorPositionFromStringIndexUsingCharacterHeight(cursorIndex, true); GUIUtility.compositionCursorPos = worldPosition + cursorPos; }