Thor Brigsted
5ee63d3ee5
Fixed #96
...
InstancePortLists no longer need to point to a serialized property
2019-01-11 18:54:44 +01:00
Thor Brigsted
432ca09274
Removed debug info
2019-01-11 18:38:54 +01:00
Thor Brigsted
d397e3a208
Improved NodeEnumDrawer serialization
2019-01-10 19:54:11 +01:00
Thor Brigsted
b08d706e0d
Changed custom InstancePortList API.
...
See: NodeEditorGUILayout.InstancePortList
2019-01-10 18:15:16 +01:00
Thor Brigsted
96d73bcb81
Better error handling for InstancePortLists
2019-01-05 22:02:00 +01:00
Thor Brigsted
8f33f5ddf3
Merge branch 'cachedAttributes'
2018-12-27 02:55:42 +01:00
Thor Brigsted
c321c276d1
Fixed formatting
2018-12-27 02:55:09 +01:00
Thor Brigsted
3450b5f208
Merge branch 'typeColors'
2018-12-27 02:50:02 +01:00
Thor Brigsted
8d445fa3f4
Fixed formatting
2018-12-27 02:47:15 +01:00
Thor Brigsted
3ced922ce6
Add zoomToMouse setting in preferences
2018-12-23 10:21:03 +01:00
Simon Rodriguez
3d1da00652
Caches attributes, generates no garbage after first fetch.
...
Cache gets reset on recompilation of code.
2018-12-21 14:54:12 +01:00
Simon Rodriguez
842101720e
Changed so Dictionary now uses Type as key.
...
Uses PrettyName less.
Also changed to TryGetValue instead of ContainsKey in GetTypeColor()
2018-12-21 13:39:52 +01:00
Patrik Lindberg
e6530d87d6
Zooming is now centered around the mouse position.
2018-12-21 11:48:09 +01:00
Simon Rodriguez
fe2b7a9684
Fix for [Space] attribute ( #90 )
...
* Fix for [Space] attribute.
Code is a bit messy.
* Exchanged EditorGUILayout.Space() to GUILayout.Space() that takes a parameter height, for custom space distances.
* Changed where implementation is added to not messy up the rest of the code.
2018-12-18 10:00:10 +01:00
Simon Rodriguez
3b18ca9b02
FetchSettingsProviders has been removed in 2018.3.0f2.
...
Now preferences is opened like this.
2018-12-15 14:33:34 +01:00
Thor Brigsted
5b11e81027
Move context menu functions around to allow more customization ( #87 )
...
Moved NodeEditorWindow.ShowNodeContextMenu to NodeEditor.AddContextMenuItems
Moved NodeEditorWindow.ShowGraphContextMenu to NodeGraphEditor.AddContextMenuItems
Moved NodeEditorWindow.CreateNode to NodeGraphEditor.CreateNode
2018-12-15 12:40:16 +01:00
Thor Brigsted
a0eee5b9ca
Fix misconfigured node.graph reference during node instantiation and graph cloning ( #85 )
...
* Attempting to fix #81 in a cleaner way. Still not perfect
* Fixed setting to null during OnEnable
* Fixed spelling
2018-12-12 00:57:31 +01:00
Simon Rodriguez
6c1af6f4cd
Fix/error on duplicate ( #82 )
...
* Pressing CTRL+D (duplicate) threw editorgui exception "Getting control 0s position in a group with only 3 controls when doing ValidateCommand".
comparing to https://github.com/Unity-Technologies/UnityCsReference/blob/master/Editor/Mono/SceneHierarchyWindow.cs : row 211, the proper use of the event was not made.
also fixed spelling of Dublicate to Duplicate.
* Braces on wrong lines.
* Something got wrong with the comments.
2018-12-10 23:33:25 +01:00
Thor Brigsted
5803ae45ba
Revert "Allow to trigger renames via F2 key"
2018-11-16 14:06:59 +01:00
Thor Brigsted
55e57dc2ac
Merge pull request #79 from tmorgner/TriggerRenameViaKeyboard
...
Allow to trigger renames via F2 key
2018-11-16 13:19:12 +01:00
Thomas Morgner
b138388c29
Allow to trigger renames via F2 key
2018-11-16 12:14:04 +00:00
Thomas Morgner
11c8f29672
Clear edit-mode when reselecting node while renaming node
2018-11-16 12:01:34 +00:00
Thor Brigsted
35861d20c6
Focus xNode in preferences window in >= 2018.3
2018-11-13 00:04:00 +01:00
Thor Brigsted
6979333eb1
Added [NodeEnum] which fixes enum positions.
...
#28
2018-11-11 22:39:32 +01:00
Thor Brigsted
604365ce67
Unity 2018.3 support
2018-11-07 20:24:33 +01:00
Thor Brigsted
dc608a3d1b
Added NodeEditorGUILayout.onCreateReorderableList action for reorderablelist customization
2018-11-01 00:46:38 +01:00
Thor Brigsted
b9bd67bd28
Cleanup
...
Removed unused code, added/fixed comments
2018-10-30 09:38:44 +01:00
Thor Brigsted
ba69380638
Fixed error on instanceportlists that aren't arrays
2018-10-29 21:20:22 +01:00
Thor Brigsted
e9c6b6f221
Removed middleman function
2018-10-27 19:57:13 +02:00
Thor Brigsted
16992c3972
Added NodeEditor.GetBodyStyle, allowing per-node body styles
2018-10-27 18:41:13 +02:00
Thor Brigsted
bad05a6e64
InstancePortList custom PropertyHeight supported
2018-10-26 18:42:16 +02:00
Thor Brigsted
0b008c77eb
Fixed edge case where swapping connections connected to the same port would cause a "port is already connected" error
2018-10-26 00:31:53 +02:00
Thor Brigsted
b186b7dd34
Finished reorderable instance port lists
2018-10-26 00:17:24 +02:00
Thor Brigsted
17ba6a880c
Ugh, this isn't easy
2018-10-22 00:46:49 +02:00
Thor Brigsted
82627812d6
Reordering improved, still WIP
2018-10-19 10:12:35 +02:00
Thor Brigsted
4516293214
Implemented add, remove. Reordering WIP
2018-10-18 10:07:48 +02:00
Thor Brigsted
671481f3b1
Begun working on ReorderableLists
2018-10-14 19:04:13 +02:00
Thor Brigsted
f5856f7911
Fixed #66 Minor bug with noodle
2018-10-06 01:34:34 +02:00
Simon Rodriguez
9fe26b2948
missing assignments in OutputAttribute and InputAttribute
2018-10-03 22:20:26 +02:00
Simon Rodriguez
58d32bfd85
OSX does not dispatch SoftDelete (tested on mbp no external keyboard), only Delete.
2018-09-27 21:54:10 +02:00
Simon Rodriguez
98edbf0c80
Added label before drawing InstancePortList
2018-09-22 11:09:08 +02:00
Thor Brigsted
7ee89ba79c
Added instancePortList field to Input and Output attributes.
2018-09-19 23:17:08 +02:00
Simon Rodriguez
fc0f1983e0
Suggestion, better looking buttons for InstancePortList
2018-09-19 09:04:58 +02:00
Thor Brigsted
ff97cc4494
Switched Dict.ContainsKey out with Dict.TryGetValue for performance gain.
2018-09-09 18:25:41 +02:00
Thor Brigsted
c424dfa4d7
Merge pull request #63 from dashrava/Culling
...
Node Culling Optimization
2018-08-31 09:36:00 +02:00
Thor Brigsted
f9e024198e
Improved InstancePortList. It now takes a NodePort.IO parameter
2018-08-30 15:52:30 +02:00
-rava
2f4ef6f5c3
Modify node culling to use node dimensions directly instead of (slowly) fetching NodeEditor first.
2018-08-30 05:05:43 +03:00
Thor Brigsted
372c968c85
Merge pull request #62 from phoenixanimations/patch-4
...
Fixes the undo bug, and hopefully the inconsistent values in inspector/node
2018-08-27 11:55:44 +02:00
Thor Brigsted
cc72e44895
Fixed reroute point snap centering
2018-08-27 11:29:34 +02:00
phoenixanimations
ffc061f64e
Update NodeEditor.cs
...
I initially found out about this through
https://docs.unity3d.com/ScriptReference/Editor.html
specifically these two comments:
```csharp
// Update the serializedProperty - always do this in the beginning of OnInspectorGUI.
serializedObject.Update ();
...
// Apply changes to the serializedProperty - always do this in the end of OnInspectorGUI.
serializedObject.ApplyModifiedProperties ();
```
I'm assuming, although I don't know for sure, that since OnBodyGUI displays the serialize objects in the custom inspector, that it must follow the same rules as well. Either way these lines of code solve for me the glitch: pressing undo while typing and getting a disconnect between the node and the inspector.
2018-08-26 22:55:57 -04:00