1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 17:26:02 +08:00

Prettified default node titles

This commit is contained in:
Thor Brigsted 2017-10-15 18:07:52 +02:00
parent 81f01cefc9
commit d498484802

View File

@ -20,7 +20,8 @@ public class NodeEditor {
protected void DrawDefaultHeaderGUI() {
GUI.color = Color.white;
GUILayout.Label(target.name, NodeEditorResources.styles.nodeHeader, GUILayout.Height(30));
string title = NodeEditorUtilities.PrettifyCamelCase(target.name);
GUILayout.Label(title, NodeEditorResources.styles.nodeHeader, GUILayout.Height(30));
}
/// <summary> Draws standard field editors for all public fields </summary>