# How to get text cursor position in text box?

**URL:** <https://forums.unrealengine.com/t/how-to-get-text-cursor-position-in-text-box/385665>\
**Category:** Blueprint\
**Tags:** cursor, textbox, unreal-engine, question\
**Created:** [February 21, 2017, 1:20pm UTC](https://forums.unrealengine.com/t/how-to-get-text-cursor-position-in-text-box/385665 "2017-02-21T13:20:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lxydlh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lxydlh](https://forums.unrealengine.com/u/lxydlh)\
**Post date:** [February 21, 2017, 1:20pm UTC](https://forums.unrealengine.com/t/how-to-get-text-cursor-position-in-text-box/385665/1 "2017-02-21T13:20:05Z")

</div>

How to get text cursor(text edit beam)position of a TextBox?  
Word index is best…

---

<div class="post-metadata">

**Author:** ![thats\_mesfix](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thats_mesfix/32/873546_2.png) [@thats\_mesfix](https://forums.unrealengine.com/u/thats_mesfix)\
**Post date:** [October 10, 2020, 12:37pm UTC](https://forums.unrealengine.com/t/how-to-get-text-cursor-position-in-text-box/385665/2 "2020-10-10T12:37:31Z")

</div>

the same question, i add text to the textbox, set focus in it. the cursor blinks in front of the text! I also can’t find information on how to get the cursor. (4.24.3 on android)

---

<div class="post-metadata">

**Author:** ![CaputAngulus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CaputAngulus](https://forums.unrealengine.com/u/CaputAngulus)\
**Post date:** [November 19, 2020, 2:58pm UTC](https://forums.unrealengine.com/t/how-to-get-text-cursor-position-in-text-box/385665/3 "2020-11-19T14:58:05Z")

</div>

TextBox setFocus() in Blueprint

---

<div class="post-metadata">

**Author:** ![thats\_mesfix](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thats_mesfix/32/873546_2.png) [@thats\_mesfix](https://forums.unrealengine.com/u/thats_mesfix)\
**Post date:** [November 20, 2020, 2:07pm UTC](https://forums.unrealengine.com/t/how-to-get-text-cursor-position-in-text-box/385665/4 "2020-11-20T14:07:45Z")

</div>

![322591-untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/2/9628aad3d0c10fae74b31e3dc67651274a960f84.png)

Yes, after the set focus, the cursor appears at the beginning of the text (in the text box), but it is necessary that at the end

---

<div class="post-metadata">

**Author:** ![charlesaraya](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@charlesaraya](https://forums.unrealengine.com/u/charlesaraya)\
**Post date:** [October 22, 2024, 11:25am UTC](https://forums.unrealengine.com/t/how-to-get-text-cursor-position-in-text-box/385665/5 "2024-10-22T11:25:01Z")

</div>

> [@thats\_mesfix](#):
>
> but it is necessary that at the end

This is the key. Right at the very end when the widget is added to the viewport or made visible (from collapsed).
