Thor Brigsted
9e7e7c4c9b
UPGRADE NOTICE: Removed Init. Use OnEnable instead
...
OnEnable is a built-in event in Unity, and as such you don't need to override anything.
Simply replace 'protected override void Init()' with 'private void OnEnable()'.
You can use any access modifier.
2019-05-07 17:02:25 +02: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
Thor Kramer Brigsted
702f34161a
Fixed Node port enumerables not returning the right ports
2017-11-02 16:11:41 +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 Brigsted
5f394581d6
Made Node.inputs and Node.outputs private. Started introducing instanceInputs and instanceOutputs.
2017-11-02 01:47:22 +01:00
Thor Brigsted
0150a7bb81
Improved GetInputsByFieldName<T> usage. Added getvalue type checks
2017-10-28 19:03:21 +02:00
Thor Kramer Brigsted
4de58ad0db
Added T GetInputByFieldName<T>(string fieldName, T fallback = default<T>();
...
Now retrieving input values is much easier.
As simple as
Material material = GetInputByFieldName("material", this.material);
2017-10-27 14:06:39 +02:00
Thor Brigsted
d3a057b9af
Cleaned Node.cs
2017-10-21 12:01:34 +02:00
Thor Brigsted
2dc7450661
Improved userfriendlyness of [Input] and [Output]
2017-10-20 23:01:38 +02:00
Thor
c1b2d2ff87
Started work on [Input] and [Output] improvements
2017-10-20 15:55:34 +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
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
64282028aa
Code FixFormat
...
None of the code was changed, just moved around.
2017-10-14 08:37:33 +02:00
Thor Brigsted
3dae0910dc
Serialization now works correctly. Removal of nodes still broken
2017-10-13 00:08:33 +02:00