Creating useable username input text boxes

Hi everyone,

So I currently have a text input box for the user interface I’m building, but the text is very small, there’s no real visual feedback when the user clicks in the text box (the cursor is near invisible) and it’s seemingly impossible to resize the text or change its colour.

This leaves me with very few options when trying to make it more user friendly. Ideally, I’d like the box to display some text, such as, ‘Input User Name Here’ until the user clicks on it, and then the text would disappear. At the moment I’ve got all of that apart from the disappearing.

Can anyone help me with this? A code snippet would be awesome… if a little cheeky.

Cheers,

Dan

If using dynamic fonts, you can just set the font size for a particular style. Otherwise, import the font at a larger size. Change the color in the style or by using GUI.contentColor.

–Eric

So I can import a font to use for GUI text?

This is what I’m talking about. The text is really small and quite hard to read. It’s also not easy to tell if it’s possible to change it.

Is there a way to change the size of it?

Thanks for any help,

Dan

Any help on this would be awesome… :o)

Finally sorted this out. I was being a muppet… haha :slight_smile: