diff options
| author | yum <yum.food.vr@gmail.com> | 2026-01-01 16:56:53 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-01-01 16:56:53 -0800 |
| commit | d06bf919efd978f018ddcb4e2d5807a7783fcc84 (patch) | |
| tree | eb2a6ad6602ff13ed3ab95111f0e6fd940d911d4 /Scripts/Fold/Editor/FoldGraphView.cs | |
| parent | e70d2cb317295571c57abd229846424754dff937 (diff) | |
Begin work on "Fold," a node UI for manipulating vertex deformations
The idea is to expose a visual programming environment to speed up &
simplify animating vertex deformation effects.
Diffstat (limited to 'Scripts/Fold/Editor/FoldGraphView.cs')
| -rw-r--r-- | Scripts/Fold/Editor/FoldGraphView.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Scripts/Fold/Editor/FoldGraphView.cs b/Scripts/Fold/Editor/FoldGraphView.cs new file mode 100644 index 0000000..7b592cd --- /dev/null +++ b/Scripts/Fold/Editor/FoldGraphView.cs @@ -0,0 +1,20 @@ +using UnityEngine; +using UnityEditor; +using GraphProcessor; +using System; +using System.Collections.Generic; + +public class FoldGraphView : BaseGraphView +{ + public FoldGraphView(EditorWindow window) : base(window) {} + + public override IEnumerable<(string path, Type type)> FilterCreateNodeMenuEntries() + { + // Only return our subset of nodes + foreach (var nodeMenuItem in NodeProvider.GetNodeMenuEntries(graph)) + { + if (typeof(BaseFoldNode).IsAssignableFrom(nodeMenuItem.type)) + yield return nodeMenuItem; + } + } +} |
