If both SetEchoCharacter()
and SetText()
are set and you try to use GetChildStaticCast()
you just get a bunch of whatever SetEchoCharacter()
was set to.
auto* lineEditPassword = new Urho3D::LineEdit( context_ );
lineEditPassword->SetName( "LineEditPassword" );
lineEditPassword->SetMinHeight( 24 );
lineEditPassword->SetEchoCharacter( '*' );
lineEditPassword->SetText( "password here" );
Urho3D::LineEdit* passwordLineEdit = window_->GetChildStaticCast< Urho3D::LineEdit >( "LineEditPassword", false );
passwordLineEdit
does not equal “password here” but instead equals “*************”.
This seems like a bug to me.