Thor Kramer Brigsted
e7f759497b
NodeGraphEditor work continued
2017-11-27 09:29:07 +01:00
Thor Kramer Brigsted
710692a326
Added virtual NodeEdutor.GetTint()
2017-11-23 10:06:57 +01:00
Thor Kramer Brigsted
4ea25f6aee
Initial NodeGraphEditor implementation
2017-11-22 14:54:06 +01:00
Thor Kramer Brigsted
07f1f9aac5
Maked NodeEditor.OnHeaderGUI as virtual
2017-11-20 09:51:12 +01:00
Thor Brigsted
c6a4735c71
Renamed to xNode
...
Added XNode and XNodeEDitor namespaces
Removed unnecessary usings
2017-11-05 23:42:31 +01:00
Thor Kramer Brigsted
86c7966fe6
Changed NodeEditor.OnHeaderGUI and NodeEditorOnBodyGUI to public
2017-11-02 17:46:44 +01:00
Thor Kramer Brigsted
90c3621795
Moved NodeEditor.[CustomNodeEditor].contextMenuName to Node.[CreateNodeMenu].menuName
2017-11-02 17:37:11 +01:00
Thor Kramer Brigsted
d3bb36fe0e
Big update: Warning: Updating to this commit will break all node connections.
...
Internal NodePorts now uses dicts instead of lists. This is faster and more manageable.
Added instance ports.
Added Node.Ports, Node.Outputs, Node.Inputs, Node.InstanceOutputs, Node.InstanceInputs
Changed public GetInputByFieldName to GetInputValue and GetInputPort
2017-11-02 14:54:03 +01:00
Thor Kramer Brigsted
ab74f8fd36
OnBodyGUI() remake
...
Default OnBodyGUI now uses default PropertyFields as suppied by UnityEditor.
This means fields are drawn on nodes the same way as they are drawn in the inspector.
out portPosition has also been moved to a static field. It is set automatically using the NodeEditorGuiLayout methods.
Alternatively, you can alter it manually during your node GUI drawing.
2017-10-31 14:52:10 +01:00
Thor Kramer Brigsted
f335ecfbb5
Nodes now show unsupported value types as labels.
2017-10-31 11:25:49 +01:00
Thor Brigsted
2dc7450661
Improved userfriendlyness of [Input] and [Output]
2017-10-20 23:01:38 +02:00
Thor
9db84d1608
Replaced node Rect rect with node Vector2 position. Improved node hover check.
2017-10-19 15:15:34 +02:00
Thor Brigsted
94b9318858
Renamed some methods
2017-10-16 21:08:35 +02:00
Thor Brigsted
d498484802
Prettified default node titles
2017-10-15 18:07:52 +02:00
Thor Brigsted
81f01cefc9
Added editor callback onUpdateNode
2017-10-15 16:31:46 +02:00
Thor Brigsted
5e68b6bcdc
Big update.
...
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.
2017-10-14 16:19:24 +02:00
Thor Brigsted
c1db2d9e4b
Minor UI design changes
2017-10-14 10:52:20 +02:00
Thor Brigsted
427dc8d53c
Added NodeEditorGUILayout static class. Improved int, float, double, long editor fields.
2017-10-14 10:47:16 +02:00
Thor Brigsted
64282028aa
Code FixFormat
...
None of the code was changed, just moved around.
2017-10-14 08:37:33 +02:00
Thor Brigsted
9abdf2995e
Added Node Editor entry in Preferences. Custom colors for value types can now be assigned
2017-10-14 08:33:46 +02:00
Thor Brigsted
76e8b70316
Initialization performance updates (wip)
2017-10-09 19:52:41 +02:00
Thor Brigsted
e502e23b50
Improved layout of float and int fields
2017-10-09 00:30:40 +02:00
Thor Brigsted
147424ca73
Added DisplayValue and GetValue
2017-10-09 00:29:40 +02:00
Thor Brigsted
4d9f74cf5a
Fixed compile error
2017-10-08 14:31:00 +02:00
Thor Brigsted
ac6e75668b
NodeGraph changes should now be saving correctly. Needs improvemend.
...
Also improved layout of Color and AnimationCurve
2017-10-08 13:36:54 +02:00
Thor Brigsted
7330041bde
Fixed node position appearing as an editable field
2017-10-07 15:49:27 +02:00
Thor Brigsted
f6d92589dd
UI changes
...
Brighter nodes, fatter wires, padding, prettier enum fields
2017-10-06 19:53:37 +02:00
Thor Brigsted
965b086341
Started UI overhaul
2017-10-03 20:15:59 +02:00
Thor Brigsted
5f4da093f3
Fixed node headers
2017-10-01 21:53:29 +02:00
Thor Brigsted
6a92f18618
Connections now draw under port handles
...
Modulized code. Too many minor changes to address
2017-09-30 22:27:01 +02:00
Thor Brigsted
f8a0bb8f7c
Started work on NodeGraphExample
2017-09-27 23:41:01 +02:00
Thor Brigsted
63808eb6a2
Removed GetInput and GetOutput and made inputs and outputs public
2017-09-27 22:45:28 +02:00
Thor
0e6eb55143
UI stylistic changes
2017-09-26 14:31:05 +02:00
Unknown
59c1e0d576
Fixed internal values being displayed on node GUI
2017-09-25 00:14:48 +02:00
Unknown
b10ff1a938
Prettified field names
2017-09-25 00:05:46 +02:00
Unknown
59085db16a
Streamlined creation of custom node ports
...
Instead of initializing port arrays in Init();, ports are now defined by attributes on public fields
2017-09-24 21:54:53 +02:00
Unknown
c66ac47ea9
Changed NodePort UI styling
2017-09-23 00:26:38 +02:00
Thor Brigsted
f00b957e04
Removed NodeGraphAsset. Made NodeGraph into a ScriptableObject
...
Runtime serialization will have to wait.
2017-09-22 13:41:09 +02:00
Thor Brigsted
638e784ca9
Added custom context menu path in attribute
...
Created NodeEditorUtilities
Renamed 'RightClickContextMenu' to 'ShowContextMenu'
Excluded abstract classes from nodeTypes and nodeEditorTypes
2017-09-22 12:19:21 +02:00
Thor Brigsted
372099b03d
Minor bugfixes and cleanup
...
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
2017-09-21 18:15:40 +02:00
Thor Brigsted
846f7f30b1
Exposed fields and custom editors
2017-09-21 13:22:34 +02:00
Thor Brigsted
f9152bf891
Editor core complete
...
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
2017-09-20 17:22:23 +02:00
Thor Brigsted
5f0a776350
Started work on node graphs
2017-09-15 15:56:17 +02:00