Skip to content

Commit

Permalink
Don't show smart variable nodes in YarnNode dropdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Nov 5, 2024
1 parent 3deac38 commit caf4279
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Editor/PropertyDrawers/YarnNodeAttributeDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten

foreach (var name in project.Program.Nodes.Keys)
{
if (name.StartsWith("$"))
{
// Skip smart variable nodes
continue;
}

menu.AddItem(new GUIContent(name), name == nodeName && !hasMixedNodeValues, () =>
{
property.stringValue = name;
Expand Down

0 comments on commit caf4279

Please sign in to comment.