chark/scriptable-events

Bug: Can not search scriptable event in listener

GDdark opened this issue · 1 comments

image

Can not search scriptable event in listener and i have to drag the scriptable event from project directory every times.

Unity Version: 2020.3.22f1

By the way. It's a great library and i use it for my project deeply.
hope it gets better and better

Hey, thank you for the bug report!

I've tried looking into this issue a while back and this seems to be a tradeoff when using generics to implement events via ScriptableObject. That is, if you use:

[SerializeField]
private MyCustomClass<T> myCustomClass;

Unity can't find the appropriate assets and populate the object picker list. See this forum post for more info:
https://forum.unity.com/threads/generic-scriptable-object-fields.790763/

I've created a new issue #17 which should address this by adding a custom way of searching for these assets. This will be done after the v2.1.0 release which will have a lot of cool features!