diff options
| author | yum <yum.food.vr@gmail.com> | 2026-01-02 15:15:49 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-01-02 15:16:57 -0800 |
| commit | 55ab58068067b2feca35e27ad18349f3597b1a3d (patch) | |
| tree | 199f13cfa50588b9c0d44aef7511f73c99c766f3 /Scripts/Fold/Editor/FoldGraphView.cs | |
| parent | 1591d5d8eb702883460535d0d5968abf22433da5 (diff) | |
Fold: add Serialize() method to fold nodes
Diffstat (limited to 'Scripts/Fold/Editor/FoldGraphView.cs')
| -rw-r--r-- | Scripts/Fold/Editor/FoldGraphView.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Scripts/Fold/Editor/FoldGraphView.cs b/Scripts/Fold/Editor/FoldGraphView.cs index f77e97b..b8911c1 100644 --- a/Scripts/Fold/Editor/FoldGraphView.cs +++ b/Scripts/Fold/Editor/FoldGraphView.cs @@ -11,8 +11,15 @@ public class FoldGraphView : BaseGraphView public override IEnumerable<(string path, Type type)> FilterCreateNodeMenuEntries() { - return NodeProvider.GetNodeMenuEntries(graph) - .Where(entry => typeof(BaseFoldNode).IsAssignableFrom(entry.type)); + return NodeProvider.GetNodeMenuEntries(graph) + .Where(entry => + typeof(BaseFoldNode).IsAssignableFrom(entry.type) || + typeof(KeyframeNode).IsAssignableFrom(entry.type) || + // Whitelist a few built in nodes that we use. + typeof(FloatNode).IsAssignableFrom(entry.type) || + typeof(GameObjectNode).IsAssignableFrom(entry.type) || + typeof(VectorNode).IsAssignableFrom(entry.type) + ); } } |
