arimger / Unity-Editor-Toolbox

Tools, custom attributes, drawers, hierarchy overlay, and other extensions for the Unity Editor.
MIT License
1.72k stars 125 forks source link

[Feature Request] Nested Reference Picker #47

Closed Kamatis closed 2 years ago

Kamatis commented 2 years ago

Currently, when you put a ReferencePicker attribute inside another ReferencePicker member, the child just shows the label without the ReferencePicker. I suggest having the ReferencePicker go down for multiple child levels.

arimger commented 2 years ago

Hello, thank you for the issue.

This is currently on my TODO list because [SerializeReference]-based properties don't support ToolboxAttributes at all. It's related to the obsolete logic of retrieving FieldInfo of such field (targeted type is serialized, not stored in the field). Anyway, for sure I will change it.

arimger commented 2 years ago

Should be fixed in https://github.com/arimger/Unity-Editor-Toolbox/pull/48.

If you encounter any other problem/bug related to [SerializeReference] usage please create another issue.