caret_position in Godot 4

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Firty

In Godot 3 I used caret_position to set the position of the caret in a LineEdit, but in Godot 4 it doesn’t work anymore, and I searched a lot for a solution, but ended up with no options. It must be something very simple… At least it should be simple.

:bust_in_silhouette: Reply From: jgodfrey

I searched a lot for a solution, but ended up with no options

Hmmm… Did you look at the docs?

I think you’re after caret_column in Godot 4.

Docs: LineEdit — Godot Engine (4.0) documentation in English

Yes, this is exactly what I needed… And yes, I had explored the documentation. The word column made no sense to me. I’m trying to convert some projects and these name changes sometimes drive me crazy hahahaha

Firty | 2023-04-26 18:32