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

83 Commits

Author SHA1 Message Date
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
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
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
d19ea40e38
Update Node.cs 2022-09-12 18:22:03 -06:00
Simon Rodriguez
b6528a255c
Added InheritedAny for cases where a middle class can get inputs from child class and parent class (#293) 2020-08-26 21:49:48 +02:00
Thor Brigsted
c2a99ba2b5 Improved commenting on attributes 2020-04-21 15:52:06 +02:00
Thor Brigsted
8965d365e6 Add [DisallowMultipleNodes] for limiting how many nodes of a certain type can exist on any graph 2020-04-21 15:31:07 +02:00
Simon Rodriguez
a61bb3f87e
Implemented OrderBy in Add Node Menu (#247) 2020-04-14 08:11:21 +02:00
José Rey Méndez
cf8c70203b
Fix stack overflow when using obsolete method Node.AddInstanceInput (#231) 2020-02-02 18:36:21 +01:00
Lumos
7e93ffe4b7 Fix for the dynamic port "serialisation desync" problem. (#223)
* Exclude strings from array types manually to prevent them from being treated as char arrays.
2020-01-21 08:01:57 +01:00
Thor Brigsted
ac7403b876 Removed Allowmultiple from Output and Input attributes 2020-01-06 09:12:58 +01:00
Simon Rodriguez
63c3ae2f7d Fixed TypeConstraint.Inherited, and added TypeConstraint.InheritedInverse (#205)
* Added TypeConstraint to check inheritance but inverted.

* Flipped output inherited type constraints, edited comments
2019-11-06 13:12:04 +01:00
Simon Rodriguez
6a629d159c Added type constraints to output port (#170) 2019-07-09 10:44:00 +01:00
Thor Brigsted
d7f5bd2a1a Added obsolete methods to help with upgrading
Relating the Instance port > dynamic port change
2019-05-06 17:54:43 +02:00
Thor Brigsted
c3e85a9f82 UPGRADE NOTICE: Renamed 'instance ports' to 'dynamic ports'.
To upgrade, simply rename all your method calls involving instance ports eg. 'AddInstanceOutput' to the dynamic port equivalent eg. 'AddDynamicOutput'
There is no functional difference. The community just agreed this was a more fitting name for the feature.
2019-05-05 10:52:36 +02:00
Thor Brigsted
01d7f782e4 Fixed issues relating to InstancePortList 2019-03-04 19:04:00 +01:00
Thor Brigsted
9875f8d4f0 Merge branch 'master' of git@github.com:Siccity/xNode.git 2019-02-17 02:00:26 +01:00
Thor Brigsted
57d3a03a91 Removed GetHashCode override.
This should improve performance, but has previously caused a slew of bugs.
Bugtest thoroughly before merging
2019-02-16 12:21:21 +01:00
Thor Brigsted
71defcbdd5 Implemented typeConstraint in InputAttribute 2019-02-16 02:36:42 +01:00
Thor Brigsted
84e2af7916 Cleanup
Postfixed attribute classes with Attribute
Added Attributes region
2019-02-16 01:32:52 +01:00
Thor Brigsted
3972ac5abf Allow naming nodes in Init 2019-01-21 22:25:05 +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
Thor Brigsted
17ba6a880c Ugh, this isn't easy 2018-10-22 00:46:49 +02:00
Simon Rodriguez
9fe26b2948 missing assignments in OutputAttribute and InputAttribute 2018-10-03 22:20:26 +02:00
Thor Brigsted
7ee89ba79c Added instancePortList field to Input and Output attributes. 2018-09-19 23:17:08 +02:00
Thor Brigsted
ff97cc4494 Switched Dict.ContainsKey out with Dict.TryGetValue for performance gain. 2018-09-09 18:25:41 +02:00
Simon Rodriguez
c015b6ec4b Added attribute NodeWidth.
Changes the width used when rendering the node in the editor.
2018-06-17 14:16:13 +02:00
Thor Brigsted
704730e59d Minor corrections
Instance ports now show value for tooltip
Edited comment
2018-06-10 21:17:17 +02:00
Thor Brigsted
7a1726b342 Fixed commenting 2018-05-13 13:29:12 +02:00
Thor Brigsted
61ca00ce31 Renamed GetNodePath to GetNodeMenuName (consistency)
Empty menuNames now skips, just like null does
2018-05-13 12:18:16 +02:00
Thor Brigsted
19e244212c Added NodeRename #11 2018-04-05 20:59:50 +02:00
Thor Brigsted
1fff90cbf2 Added 'Clear Connections' right-click option for NodePorts 2018-03-28 00:55:53 +02:00
Thor Brigsted
71cde080b6 Revert "Performance improvement. (removed unnecessary override)"
This reverts commit 51e77a227956dd043b6a6b7b19ef440a10518909.
2018-02-05 03:12:50 +01:00
Thor Brigsted
51e77a2279 Performance improvement. (removed unnecessary override) 2018-01-30 20:31:31 +01:00
Thor Brigsted
5b79757667 Fixed issue #12 2018-01-26 17:58:48 +01:00
Thor Brigsted
73172a1c48 Fixed outOfSync bug in ClearInstancePorts 2018-01-26 12:16:11 +01:00
Thor Brigsted
51746307b1 Documentation corrections 2018-01-23 12:32:59 +01:00
Thor Brigsted
08582d9536
Merge branch 'master' into master 2018-01-09 01:23:31 +01:00
Thor Kramer Brigsted
6e649dcc24 Automatically relink renamed Node scripts 2018-01-08 14:34:54 +01:00
Thor Brigsted
0c6466f0b6 Documentation 2018-01-07 23:32:16 +01:00
Joram
477c5b16a0 added port setting 2018-01-03 18:35:02 +01:00
Thor Brigsted
e21398cd19 Added Node.ClearInstancePorts
Fixed System.Exception
2017-12-19 19:18:35 +01:00
Thor
247482d555 Added overload for RemoveInstancePort. Removed return bool. 2017-12-19 10:42:48 +01:00
Thor Brigsted
2291531ceb Added Node.OnRemoveConnection 2017-12-03 23:23:00 +01:00
Thor Brigsted
fe057a7be2 Added ShowBackingValue options for Input and Output
Added NodeEditorUtilities.GetAttrib<T>(Type classType, string fieldName, out T attribute)
2017-11-27 00:59:16 +01:00
Thor Kramer Brigsted
d68d926a2d Added color32 support for NodeTint 2017-11-14 16:50:28 +01:00
Thor Brigsted
fc16f69710 Nodes can now define a unique color per type using [NodeColor] 2017-11-14 01:07:26 +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
90c3621795 Moved NodeEditor.[CustomNodeEditor].contextMenuName to Node.[CreateNodeMenu].menuName 2017-11-02 17:37:11 +01:00
Thor Kramer Brigsted
8eff75fa7f Bug fixes 2017-11-02 16:17:28 +01:00