About 459,000 results
Open links in new tab
  1. Unity - Scripting API: EditorGUILayout.TextField

    Make a text field. This works just like GUILayout.TextField , but correctly responds to select all, copy, paste etc. in the editor, and it can have an optional label in front. Changes the name of the selected GameObject.

  2. Changing the label style on a text field in EditorGUILayout - Unity ...

    Jun 8, 2017 · You’ll need to draw the label separately. For example: GUIStyle SectionNameStyle = new GUIStyle(); SectionNameStyle.fontSize = 35; EditorGUILayout.BeginHorizontal(); try { EditorGUILayout.LabelField("Section Name", SectionNameStyle); SectionName = EditorGUILayout.TextField(SectionName, SectionNameStyle); } finally { EditorGUILayout ...

  3. Text Field - Unity

    A Text Field is an input field that allows users to enter text. Multiple lines of text can be in scalable, dynamic text areas. Dynamic text fields provide a scalable view for editing and review.

  4. Draw "EditorGUILayout.FloatField" with a custom label after the field?

    May 11, 2018 · I'm making a custom editor window and I want to draw EditorGUILayout.FloatField on it. if I write this: a label appears in front of the field. But I want it to appears behind the field. Also, I'd like to change simple text with a texture. What I have now: What I'd like to achieve: UPD.

  5. How to get a bold Labelfield (EditorGUIStyle) - Unity Discussions

    Dec 28, 2011 · Change the color of a label font that's using an EditorStyle.textField style? How do I get a Labelfield showing bold letters? I tried using a modified style, but the Labelfield doesn’t accept the new style as an option: EditorGUILayout.LabelField ("", "Headline:", GUILayout.MinHeight (20),GUILayout…

  6. Label - Unity

    Labels are text elements that are used for identifying input controls in an interface. Scripting API and implementation references. Adjustment-based control elements that require fine input, or enable / disable toggles when used alone, can be interacted with their label.

  7. Scripting API: GUI.Label - Unity

    Make a text or texture label on screen. Labels have no user interaction, do not catch mouse clicks and are always rendered in normal style. If you want to make a control that responds visually to user input, use a Box control.

  8. How to dynamically create an UI text Object in Unity 5?

    Feb 5, 2016 · You want to retrieve the UI Text information from or set variable of that object you've created via script, you can then just use yourGOname.GetComponent<Text>().text, yourGOname.GetComponent<Text>().font, etc.

  9. c# - unity change text label - Stack Overflow

    Jun 19, 2016 · I am new to unity and I have a bewbie question: on my start screen I have a text object, and I want that when the scene is loaded, to change the value of this text label (for example for best score to load). so I want to do something like this: GetComponent<GUIText>().text = "Best: " + PlayerPrefs.GetInt("highscore", 0);

  10. Change the color of a label font that's using an ... - Unity

    Feb 18, 2014 · I have a custom object field which essentially calls GUILayout(field, EditorStyles.textField) to get some resemblance to an object field. However, I’m not being able to change the color of text that’s been displayed.

Refresh