1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 17:26:02 +08:00
Thor Brigsted 682dccdd9d Changed NodeEditorGUILayout labels to use dynamic output GUIStyle based on EditorStyles.label
This will make it easier to change node text color

Example:
[CustomNodeEditor(typeof(MyNode))]
public class MyNodeEditor : NodeEditor {
    private static GUIStyle editorLabelStyle;

    public override void OnBodyGUI() {
        if (editorLabelStyle == null) editorLabelStyle = new GUIStyle(EditorStyles.label);
        EditorStyles.label.normal.textColor = Color.green;
        base.OnBodyGUI();
        EditorStyles.label.normal = editorLabelStyle.normal;
    }
}
2018-02-05 02:07:22 +01:00
..
2018-01-22 18:06:50 +01:00
2018-01-30 12:27:17 +01:00
2017-09-15 15:56:17 +02:00
2018-02-03 11:56:20 +01:00
2017-09-15 00:46:21 +02:00
2017-09-15 00:46:21 +02:00
2017-09-15 00:46:21 +02:00
2017-09-23 00:26:38 +02:00