Can now adjust color of group node resize icon.
Changed header label rendering to always be vertically centered.
Changed group node style.
Changed rename text field style.
Updated Node Editor Preferences window. Better separators. Added additional appearance options.
Removed Rounding in GridToWindowPositionNoClipped() (and DrawGrid()) which was originally meant to fix UI Sharpness. But it did not have impact in my case and without it made panning feel much smoother.
- Added the GetPortStyle(...) as virtual method at GraphEditor.
With this, users can customize the texture for different ports, and they can also modify the padding without having to overwrite the default xNode style.
This prevents many problems when working with multiple graphics.
The style properties used from Style is:
- padding-left.
- padding-right.
- normal.background, to border texture.
- active.background, to dot texture.
Added the separate port padding to control the port's offset position in relation to the node content padding
Currently, if I try to create a custom theme for node, i will be stuck with the port padding, because currently there are not separate padding from the node,
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;
}
}
Removal of scripts now also clears dependant nodes, to avoid null objects.
NodePorts now support fallback values.
UI Changes.
node.graph is now serialized as well.
Changed:
- Private fields with [Serializable] attributes are now also shown
- Nodes can now only be dragged by the title
- Output text alignment
Fixed:
- NodeEditorWindow fields not resetting to null
- Field editors
Removed NodeConnection.cs: Node ports now operate by crossreferencing eachother
Changed from separate static classes to partial class
Removed UNEC Namespace
Added live hover info