Issues with Custom-Editor inside Editor-Window

Hi, I have a problem in my custom editor window :confused:

I created a custom logger, settings are defined via a scriptable object that uses a custom editor. Everything works perfectly fine inside the inspector, I can select and edit everything. But when I display the scriptable object inside my editor window (for convenience) one functions of the ReorderableList I use don’t work anymore: selecting entries.


Red is the editor window. Everything works fine except I can’t select the entries as seen in the inspector (green) below.

The code used to display the scriptable object inside the editor window is the following:

var editor = Editor.CreateEditor(LogEditor.PrivateLogSettings);
editor.OnInspectorGUI();

I don’t think you want to recreate the editor every frame, as that’ll discard any data tied to the editor - like selected stuff. You probably want to create that editor when you create the editor window, store it in a field, and use it later.

1 Like

This is why I love this Forum. So many helpful people! :wink:

Thank you Baste!