How to set text of LineEdit in C#

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

How to do $LineEdit.text = “something” in C#

What I tried is:

private LineEdit test

public override void _Ready()
test= GetNode< LineEdit >(“Control/LineEdit”);
test.Text = “something”;

Like you did. That’s correct. Why do you ask?

juppi | 2021-10-22 16:38

:bust_in_silhouette: Reply From: Uggeli

test.placeholder_text = “something”;