1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 09:16:01 +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
..
2017-09-15 00:46:21 +02:00
2017-09-15 00:46:21 +02:00
2018-01-22 01:19:23 +01:00
2017-12-25 01:35:11 +01:00
2017-09-15 15:56:17 +02:00
2017-09-19 00:15:17 +02:00