Download

How to create a drop-down list with search function

Hi everyone,

I was wondering if it was possible for me to create my own drop-down list similar to the ones used for material selection or static mesh selection (see below)

I tried using enumeration, but it doesn’t allow me to search for a string like I can for materials or meshes (see below).

Enum.PNG

That list will include thousands of different strings, so a search function would really come handy.

Thanks,
Antoine

Alright, I find a way of achieving what I wanted by using the DataTable Row Handle (see picture)

DTRowHandle.PNG

So now I have a dropdown list containing all the rows of my datatable, and I can even search through the rows so that’s exactly what I needed.
However, it seems like I cannot set the value of the Row Name. It is set at None by default, and selecting another row in the dropdown list doesn’t do anything.
Can anyone help with that?

EDIT: Nevermind, I was setting the default value to None in my Make DataTableRowHandle node, that’s why it was not updating. All good now.

Thanks,
Antoine