Skip to content

Make YarnNodeAttributeDrawer Filterable #145

Description

@TheMartianLife

The ability to add a field to the inspector that shows a dropdown of Yarn Nodes in a particular project is nice but there are clear use cases for more nuanced modes of interaction which filter the nodes shown instead of always having the full list. This is most relevant for large projects, projects which make heavy use of small nodes, or projects where many nodes are not entry points.

Ideas:

  1. Filter by search (either text match or regex match, and even inverse/non-match)
  2. Filter by node tag(s)
  3. Filter by some static setup of parameters which are set at inspector init time (e.g. omit nodes with names that start with "Debug")
  4. Other options which may be overkill like "filter by character name that speaks in this node"
    At least the first two have been requested multiple times, and often even added by people themselves. So the implementation should be simple; many examples exist in our Discord channels already.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ProposalAn idea for a new feature or changed behaviour you wantUnityIssues concerning the Unity engine-specific code in the YarnSpinner-Unity repo

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions