PDA

View Full Version : getting text from textInputEntity



blackMasoon
10-09-2011, 03:11 PM
I'm sorry that I'm asking about every little thing in Proton but I have to if there is no documentation... How can I get the text from textInput Entity? I tried something like this:

player_name_input->GetComponentByName("OverlayRender")->GetVar("text")->GetString().c_str()

but there is no key like "text"..

Seth
10-10-2011, 06:57 AM
Close, just the component name is wrong. It doesn't have an OverlayRender. (that's for pictures)

Try this:


player_name_input->GetComponentByName("InputTextRender")->GetVar("text")->GetString();

blackMasoon
10-11-2011, 12:22 PM
Thank you :)