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:
parent
81f01cefc9
commit
d498484802
@ -20,7 +20,8 @@ public class NodeEditor {
|
|||||||
|
|
||||||
protected void DrawDefaultHeaderGUI() {
|
protected void DrawDefaultHeaderGUI() {
|
||||||
GUI.color = Color.white;
|
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>
|
/// <summary> Draws standard field editors for all public fields </summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user