Question by
unity_h7ASXHQDIwa5tg · Sep 09, 2018 at 12:39 PM ·
c#guieditorinspector
CustomEditor on Inspector, Text too big to be fully rendered
This is how my inspector is looking. It should be saying "Destroy On Hit Settings", but since the bottom part of the text is not showing, it looks like "Destrov On Hit settions".
Inside the OnInspectorGUI, this is how things are looking :
var style = new GUIStyle(GUI.skin.label) { fontSize = 13, fontStyle = FontStyle.Bold };
style.normal.textColor = Color.red;
EditorGUILayout.LabelField("Destroy On Hit Settings", style);
I've tried looking in the API and playing with the settings (things related to height), but was unsuccesfull. How can i make it render the whole text?
capturar.png
(2.9 kB)
Comment
Hi
Did you google for: "unity custom editor label field width" before creating your question? First hit leads here to Answers. The first answer might be helpful for you.