scriptable-events icon indicating copy to clipboard operation
scriptable-events copied to clipboard

Bug: Can not search scriptable event in listener

Open GDdark opened this issue 3 years ago • 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

GDdark avatar Jan 25 '22 07:01 GDdark

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 https://github.com/chark/scriptable-events/issues/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!

Edvinas01 avatar Jan 25 '22 07:01 Edvinas01