Unable to highlight text in textbox

I’m unsure if this is the correct area to post this question, so my apologies in advance if it isn’t.

I’m using a Textbox in my game and it would make the user experience much better if you were able to highlight/select text. Either by dragging over text with the mouse or using shift+arrow keys, it’d be great. Unfortunately, it doesn’t seem to work? The only way I can select text is by selecting it all at once with ctrl+a. Is there some property that I’m unaware of that will allow me to select text by dragging the mouse over it? Thanks.

1 Like

TextBoxes already have this functionality; there was an announcement a few months ago about this: I Love Textboxes, You Love Textboxes: We Made Changes to 'Em.

Make sure you have the ClearTextOnFocus property set to false and then you should be able to select text by dragging your mouse over it.

1 Like

I know they have/had this functionality, but I can’t seem to get it working. I definitely have “ClearTextOnFocus” false. No matter what I do, clicking and dragging over text simply does not highlight it.

1 Like

Is your script like this this? :

TextBox.ClearTextOnFocus = false