- 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 preference to filter the nodes from the draggable context menu, to show only nodes that have ports compatible with the dragged port
- Minor modification in NodeEditorActions, to allow the filter
- Minor modification in NodeGraphEditor to use or not the filter, based in preferences
- Added parameters to get contextMenu with compatibles node filter.
These parameters are auto-filled and do not interfere with the standard operation of this function.
> Param: Type compatibleType:
Use it to filter only nodes with ports value type, compatible with this type: Default null.
> Param: NodePor.IO:
Direction of the compatiblity: (Default Input)
Exposed virtual method to control the color of the background Port. Now it is possible to override in the NodeGraph.
Will be used to spotlight compatible ports!
The default value for the thickness of the noodle can be modified from xNode preferences.
This value is only effective if the user does not make an override from the EditorGraph at GetNoodleThickness(...).
Many users do not like to edit from the script, this will help in the creation of my new layout template, similar to the new graphView from unity
* made RemoveNode function virtual
used for example when a graph wants to block a delete
* switched order of remove function and destroy function.
target.RemoveNode was always getting a null value
Moved NodeEditorWindow.ShowNodeContextMenu to NodeEditor.AddContextMenuItems
Moved NodeEditorWindow.ShowGraphContextMenu to NodeGraphEditor.AddContextMenuItems
Moved NodeEditorWindow.CreateNode to NodeGraphEditor.CreateNode
Fixed NodeEditorGUILayout.PortField being inconsistent with Ports drawn by NodeEditorGUILayout.PropertyField
Removed obsolete NodeEditorGraph.GetNodePath