- Home /
Question by
Enoctil · Jun 10, 2017 at 11:50 PM ·
editorguieditorguilayout
Changing the label style on a text field in EditorGUILayout
So when using EditorGUILayout in this manner:
GUIStyle SectionNameStyle = new GUIStyle();
SectionNameStyle.fontSize = 35;
SectionName = EditorGUILayout.TextField("Section Name", SectionName, SectionNameStyle);
The actual text field part of the text field is changed to font size 35 but the label is still the default. How do I change the label's style? Looking at the documentation, the constructor only takes a string or a GUIContent (?) for the label.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612123726im_/https://answers.unity.com/themes/thub/images/avi.jpg)