How do I make ReorderableList display a dialog to input text on adding a new element?

Hi, I’m currently using a ReorderableList with custom add and delete callbacks.

However, I couldn’t figure out how to use the Add or AddDropdown callbacks to make a text input like the image below:

image

(Image: The Tag edit panel which allows you to enter a name on Add callback)

Any help would be appreciated. Thanks!

1 Like

You would need to write a custom inspector or property drawer to do so.

So the question is, how much experience do you have doing either?

Quite a lot. I know how to use ReorderableList on a custom inspector (Editor), but neither the Add or AddDropdown callback seems to support the feature pictured above out-of-the-box or I might be missing something.

I mean you would be handling the popup yourself. You’d hook into the callback, and when invoked, open a popup editor window, likely passing it the collection’s serialised property for adding to when the selection/input is made.

There’s tutorials on how to handle a popup in the manual: Unity - Manual: Create a pop-up window

So the feature is not in the ReorderableList but a custom behavior I need to implement myself? Thanks for clearing that up.