Hi team,
how can i set the textedit to money format, for exemplo input “.00” in final of number independent of user make it?
Hi team,
how can i set the textedit to money format, for exemplo input “.00” in final of number independent of user make it?
I made a simple script. Basically it adds the string .00 to the back of the typed string.
var stringToEdit: String = "Type Money.";
function OnGUI()
{
// Make a text field that modifies stringToEdit.
stringToEdit = GUI.TextField(Rect(10, 10, 200, 20), stringToEdit, 25);
if (GUI.Button(Rect(210, 10, 30, 30), "Click Me"))
{
stringToEdit = stringToEdit + ".00";
}
}