- Home /
Custom-made GUI Textfield
Hello, I have a simple question: is there any way in which I can make a custom textfield in unity? For an example, this game youtube.com/watch?v=hDGkXaZ9bNI uses a custom textfield on login. Thanks in advance.
Are you talking about the custom font, or the way the UI shifts? What is done here is fairly straight forward in third-party tools like EZGUI and NGUI. You can specify the font for GUI input. You might be able to get the movement by modifying the GUI.matrix.
I don't quite know what are those tools (EZGUI/NGUI), all I'm looking for is a way to change the custom box that everyone recognizes as Unity's standard GUI and change the font of the letters displayed.
If you're talking about the looks, you can do this:
Hide the default text area
Place a texture behind it that looks cool (has no function)
The text field will work still, but it won't show the default.
To hide the default text field (border, background etc) do this:
someString = GUILayout.TextField(new Rect(0, 0, 100, 100), "Label");
Adding label will hide the background. Next just place a fancy graphic you design behind it!
If you want to rotate it, you can use an actual object and have it rotate.
Your answer
Follow this Question
Related Questions
Lock a textarea/textfield for editing 1 Answer
A node in a childnode? 1 Answer
Custom GUI Button is Black 1 Answer
How do Text Fields work? (Backend) 1 Answer
GUILayout.Label - why messages are appearing on each other? 0 Answers