1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-21 01:36:03 +08:00

510 Commits

Author SHA1 Message Date
Emre Dogan
ebb36fbd28 Changed group resizing, no longer snaps to cursor position.
Changed rename textfield styling to account for custom styling on NodeEditor.cs classes.
2023-10-07 04:44:35 +01:00
Emre Dogan
ef83d77a72 Fixed Editor Window losing SceneGraph reference when exiting play mode. 2023-10-06 21:23:33 +01:00
Emre Dogan
47396c06f4 Fixed renaming on group node jittering due to different header heights.
Added new virtual callback 'OnRenameActive()'. Called when rename is first activated.
2023-10-06 03:21:55 +01:00
Emre Dogan
6e579667b2 Added renaming undo/redo.
Fixed keyboard controls for renaming.
2023-10-06 01:47:49 +01:00
Emre Dogan
5ec46e53a1 Added inline UI for Node/Group renaming. 2023-10-06 00:55:54 +01:00
Emre Dogan
62ec9a54cf Repaint current graph window on undo/redo to feel more responsive. 2023-10-06 00:54:56 +01:00
Emre Dogan
bfcef1ed34 Fixed broken namespaces. 2023-10-05 20:10:15 +01:00
Emre Dogan
f790b77575 Removed resize corner icon. 2023-10-05 18:43:26 +01:00
Emre Dogan
b3465b269e Simple refactoring. 2023-10-05 18:34:58 +01:00
guizix
556547b541
Enables Port Type Override
When Constructing a NodePort, check the PortTypeOverrideAttribute to change the ValueType of the Port.
2023-06-29 13:18:29 +08:00
guizix
111378de94
Add Attribute PortTypeOverride 2023-06-29 13:09:43 +08:00
Thor Brigsted
5967cef277
Merge pull request #358 from nostek/optimizations/memandgc
Optimizations/memandgc
2022-11-28 13:28:48 +01:00
Simon Rodriguez
da0f291a44
converted PortDataCache to a dictionary that holds a dictionary of fieldname and port indexed by type. Removed serialized from PortDataCache as it was not being saved anywhere. 2022-11-27 15:59:59 +01:00
Simon Rodriguez
c7debc2346
Added ifdef 2021_3_or_newer where Unity upgraded to net standard 2.1 where Dictionary.EnsureCapacity is added. 2022-11-27 15:07:37 +01:00
Thor Brigsted
dd62011cfb Avoid nullrefs on clearing graph 2022-11-22 10:41:13 +01:00
Simon Rodriguez
445af6e703 most new unity packages starts with Unity.xx, this reduces the number of assemblies to look through by ~30 2022-11-06 10:17:07 +01:00
Simon Rodriguez
a75f13e7bd in most cases the data is already set and with this if check we can skip a dictionary lookup 2022-11-06 10:16:26 +01:00
Simon Rodriguez
f77fa501f1 removed lookup to list that the tryget is already doing 2022-11-02 09:30:49 +01:00
Simon Rodriguez
f167313957 use string substring instead of allocating a array with the two strings in it. 2022-11-02 09:12:06 +01:00
Simon Rodriguez
bdbb287f00 use array instead of list in a enumeration we wont change 2022-11-02 09:11:27 +01:00
Simon Rodriguez
5201808eff reuse staticPorts dictionary to reduce number of allocations of memory, clear after every use and ensure capacity when we know we are going to add many entries 2022-11-02 09:10:15 +01:00
Simon Rodriguez
a077ca136b cache the AssemblyQualifiedName string, reduces number of allocations and garbage collection in projects with many nodes 2022-11-02 09:08:57 +01:00
Simon Rodriguez
f0b7882f6e ensure capacity of the arrays and dictionary in BeforeSerialize and AfterSerialize to reduce number of memory allocations 2022-11-02 09:07:22 +01:00
Carlos Gonzalez Diaz
9ca798957d Update NodeGraphEditor.cs
- Handled null nodes coming out of AddNode() both in CreateNode() and AddContextMenuItems()
2022-10-04 13:19:44 +01:00
Thor Brigsted
0e7e4aa254 Added public overrides for custom NodePort CanConnect conditions in GraphEditor 2022-09-21 13:53:28 +02:00
Thor Brigsted
fa62765daa Revert "Merge pull request #353 from LupusInferni315/master"
This reverts commit 1b64a96d40a0b33b497259bcd680c73c3122c85b, reversing
changes made to 75078edd20c6e28d9350b5aacc2a118977262192.
2022-09-21 11:01:49 +02:00
Raistlin Wolfe
ba988f7f28
Update TypeExtensions.cs
Added xml comment on IsCastableFrom
2022-09-12 18:43:28 -06:00
Raistlin Wolfe
5e3c5c0012
Create TypeExtensions.cs
Provided Implementation for IsCastableFrom
2022-09-12 18:36:45 -06:00
Raistlin Wolfe
7473083b84
Update NodePort.cs 2022-09-12 18:25:14 -06:00
Raistlin Wolfe
d19ea40e38
Update Node.cs 2022-09-12 18:22:03 -06:00
LoomDoom
b23e769c3b added cases to handle Copy and Rename for scenegraphs correctly 2022-08-27 13:28:00 +02:00
David Pilles
36a1e8891b Fix DynamicPortList reordering operating on old data in NodeEditorGUILayout 2022-07-08 14:15:20 -07:00
Thor Brigsted
157489b3c3
Merge pull request #336 from KAJed82/AdvancedGenericMenu
Advanced generic menu
2022-04-28 16:51:49 +02:00
RomanZanevski
46076527f8
Fix OnRemoveConnection from calling side
If we use the original:
if (port != null && port.IsConnectedTo(this)) port.node.OnRemoveConnection(port);
we going to have always wrong condition, about "IsConnectedTo(this)" and port.node.OnRemoveConnection(port) just won't be called, cause we already have disconnected ports. So we need to do it exactly at the moment of disconnection.
2022-04-25 16:24:08 +02:00
Kailey Joanette
f1cbe6191d Limit AdvancedGenericMenu to UNITY_2019_1_OR_NEWER 2021-12-26 15:12:46 -05:00
Kailey Joanette
840eb7818d Fixed menu item naming
Added min/maxwidth options
2021-12-26 15:07:00 -05:00
Kailey Joanette
3666509002 Advanced Generic menu that can be searched 2021-12-25 13:07:43 -05:00
ZLX
e17e9a8ba1 Fix node order in AddContextMenuItems with filter 2021-06-11 13:41:34 +08:00
ZLX
a3f1394078 Compatible with C# 4.0 language feature. 2021-06-11 13:35:52 +08:00
Simon Rodriguez
e1b564db1c added error handling 2021-05-04 08:38:25 +02:00
Simon Rodriguez
3287575dcd moved reflection code to cache part in initialization 2021-05-04 08:29:16 +02:00
Simon Rodriguez
2f69c4350d Added support for unitys FormerlySerializedAsAttribute. It reconnects ports that has the old name to its new name. 2021-05-01 18:47:39 +02:00
GolfNorth
ea2e190d98 Fix issue for older Odin version 2021-02-20 08:38:49 +05:00
ZLX
0f84990968 [FIX] Copy & Paste in node's TextField 2021-02-15 17:02:48 +08:00
Thor Brigsted
75ee5d47ff Minor bugfix 2021-02-05 13:33:33 +01:00
Thor Brigsted
d58845ee15 Fixed #299 - Typing in TextArea in custom node editor triggers Hotkey 2021-01-26 09:14:56 +01:00
Thor Brigsted
6b893fd5a4 Merge branch 'context_menu_filter' 2020-12-17 13:53:26 +01:00
Thor Brigsted
822b7ae156 Formatting 2020-12-17 13:50:11 +01:00
Kailey Joanette
75a04920b1 Fixed an issue with Undo / Redo not working correctly with Odin PropertyTree 2020-12-16 10:55:45 +01:00
Simon Rodriguez
d4deeed45b Added support in preferences for default node tint 2020-11-18 08:41:49 +01:00