Thor Brigsted
77d7802b7e
ShaderLab style noodles
2020-04-14 08:08:13 +02:00
Simon Rodriguez
76cf825090
Suggestion! A new way of drawing lines very similar to Unitys upcoming Shader Node Editor.
2020-04-13 19:35:52 +02:00
Thor Brigsted
01a5666ade
Delete Examples.meta
2020-04-06 22:19:10 +02:00
Thor Brigsted
e2c7934f1e
Limit the OnDropObjects warning to only show when a node graph editor is present
2020-04-04 14:01:05 +02:00
Thor Brigsted
f899e48ee0
Added undo support and default graph name to SceneGraph
2020-04-03 15:01:44 +02:00
Thor Brigsted
f3b211ed83
Fixed error on adding nodes in scene graphs
2020-04-03 11:26:12 +02:00
Thor Brigsted
6a69cdaf9c
New component: SceneGraph, lets you create a graph inside the scene which can reference scene objects.
2020-04-03 11:09:57 +02:00
Thor Brigsted
172bdbb7e5
Merge pull request #237 from jeffcampbellmakesgames/fix/cache_adds_duplicate_fields
...
Added fix for duplicate node fields found
2020-03-08 14:46:23 +01:00
Thor Brigsted
871427249b
Added .editorconfig
2020-03-08 14:07:31 +01:00
Jeff Campbell
9add4e11b2
Added fix for rename bug with v2 AssetDatabase ( #239 )
...
* Added fix for NodeGraph rename bug with v2 AssetDatabase where renaming a graph asset can sometimes result in it being swapped as the main asset with one of the node sub assets.
2020-03-08 12:56:57 +01:00
Thor Brigsted
9a6746a898
Merge pull request #240 from jeffcampbellmakesgames/fix/validate_nre
...
Added NRE check for ValidateGraphEditor
2020-03-08 12:49:09 +01:00
Jeff Campbell
11b7f4ac44
Added NRE check for ValidateGraphEditor
...
* Added NRE check to prevent exception when NodeGraphEditor.GetEditor returns null and an existing non-null graph editor is already present.
2020-03-07 21:30:46 +01:00
Jeff Campbell
bbfc44b04f
Added fix for duplicate node fields found
...
* Added fix for duplicate node fields found while iterating through base fields; on 2019.3 using .Net 20 getting the fields of the node type will return all base type fields as well. This results in the iteration up through the base classes and adding their instance fields resulting in duplicates which causes errors on node creation when assigning port information.
2020-02-28 22:52:30 +01:00
Thor Brigsted
1ef3896893
Potential fix for the main asset/rename problem in newer versions of Unity
2020-02-25 09:13:14 +01:00
Gökhan Kurt
c9e1ef1c92
Skip Microsoft assemblies while building node cache ( #234 )
2020-02-13 23:38:17 +01:00
Lumos
f9200ae6a8
Change the serialised type of dynamic port lists defined as lists/arrays to match the respective element type. ( #232 )
...
This is logical, given that xNode already draws such dynamic ports as belonging to the element type.
2020-02-13 22:48:59 +01: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
Lumos
b526092341
Added a virtual OnRename function to base nodes, triggered when a node gets renamed. ( #225 )
2020-01-02 19:48:36 +01:00
Gahwon Lee
e98bd85531
better odin support in xNode editors
2019-12-25 01:20:36 +01:00
Thor Brigsted
a47b4568db
Merge pull request #222 from LumosX/occupied-autoconnection-fix
...
Fix autoconnection menu opening when a link cannot be established
2019-12-24 03:59:11 +01:00
Thor Brigsted
48bbf309ce
Update CONTRIBUTING.md
2019-12-23 14:23:14 +01:00
Thor Brigsted
ad6e441ef2
Update CONTRIBUTING.md
2019-12-23 14:16:48 +01:00
Thor Brigsted
b1a9d7dcfa
Merge pull request #219 from LumosX/global-drawers
...
Generic "Edit graph" button for node and graph inspectors
2019-12-23 13:57:46 +01:00
Thor Brigsted
5597e565d1
Added focus selected node
2019-12-23 13:56:49 +01:00
Thor Brigsted
1d43244a8f
Simplified implementation
2019-12-23 13:52:53 +01:00
Lumos
23e369d38f
Fix auto-connection menu opening on invalid connections where a target node is present
2019-12-22 15:43:25 +01:00
Lumos
ede650c369
Added a big "edit graph" button to Node and Graph inspectors.
...
I was very confused that this isn't a thing already.
2019-12-21 20:33:34 +01:00
Andrei
5005b5e4f9
Made NodeGraphiEditor's OnGui method virtual and protected, so it can be extended by adding additional content/widgets to be drawn. ( #214 )
2019-12-15 11:52:22 +01:00
Fernando Molon Toigo
d54a03988a
Added virtual GetBodyHighlightStyle ( #197 )
2019-11-23 01:47:39 +01:00
Thor Brigsted
30b825ff1c
Merge pull request #207 from nostek/feature/masterfix
...
Optimize GC allocations in NodeEditorWindow
2019-11-14 18:22:49 +01:00
Thor Brigsted
4edcc3f099
Fixed formatting, fixed dashed stroke style
2019-11-14 17:40:09 +01:00
Thor Brigsted
d7f9ab975f
Merge pull request #206 from nostek/feature/headerattribute
...
Added support for [Header] attribute
2019-11-14 17:10:47 +01:00
Simon Rodriguez
ec9c5a99de
optimized linq function
2019-11-13 01:14:09 +01:00
Simon Rodriguez
71023e1d58
microoptimization, removes implicit case from vec2 to vec3.
2019-11-13 00:14:29 +01:00
Simon Rodriguez
91eafcc47d
the + and * was creating a lot of new vector2s, went down 80% in call time with this
2019-11-13 00:10:45 +01:00
Simon Rodriguez
92ebd59539
reuse the list of grid points instead of creating a new one for each node->port
2019-11-12 23:19:51 +01:00
Simon Rodriguez
8b99a34a63
The in parameter was is available in C# 7.2 and later. This breaks compatibility with earlier versions.
2019-11-12 23:05:33 +01:00
Simon Rodriguez
72ff273b5c
Rewrite that caches the ordered property attributes so the gui layout drawer can draw them in the correct order.
...
Rewrote how the property attributes are drawn, more compact less messy code.
2019-11-12 22:37:29 +01:00
Simon Rodriguez
984fe730c0
Added support for [Header] attribute
2019-11-08 09:57:54 +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
Marco Secchi
be0d452d12
Fix wrong override message. ( #204 )
2019-11-06 11:53:13 +01:00
Wang Cong
2d1a671b71
Undo support ( #199 )
...
Added undo support for move, create, duplicate and delete node, and connect port
2019-11-06 11:42:22 +01:00
Thor Brigsted
a825af8192
Merge pull request #203 from nostek/fix/duplicateemptyselection
...
Duplicating a empty selection makes linq throw exception
2019-11-05 10:55:28 +01:00
Simon Rodriguez
7cd3077ff0
Duplicating a empty selection makes linq throw exception
...
InvalidOperationException: Sequence contains no elements
System.Linq.Enumerable.Aggregate[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`3[T1,T2,TResult] func) (at <fbb5ed17eb6e46c680000f8910ebb50c>:0)
2019-11-05 10:52:04 +01:00
apkd
e15076b34f
Use Vector2 in bezier calculations
2019-10-27 16:37:31 +01:00
apkd
455107aabb
Optimize NodeEditorGUI.DrawNoodle
2019-10-27 16:30:05 +01:00
Thor Brigsted
a4ce09c212
Merge pull request #196 from DeepWolf413/master
...
Added a null check for NodeEditorWindow.current.
2019-10-23 12:08:14 +02:00
DeepWolf413
aeaaf18099
Added a null check for NodeEditorWindow.current.
...
It returns a new instance of the Settings class if the NodeEditorWindow.current is null.
2019-10-23 12:01:20 +02:00