YarnSpinnerTool / YarnSpinner-Unity

The official Unity integration for Yarn Spinner, the friendly dialogue tool.
MIT License
491 stars 85 forks source link

How does YarnParameter attribute work? #282

Open heshuimu opened 3 months ago

heshuimu commented 3 months ago

For context, I'm trying to attribute YarnCommand onto a method that has an enum type parameter.

The documentation only has the type reference of YarnParameter, but does not demonstrate how it can be used. The change log does have a mention of YarnParameter, but it's only mentioned to work with Component types.

I then tried to survey the YarnSpinner source code and see where the attributes are being reference, but I could not find any usages.

So, how are YarnParameter attributes used in the code?