How to simulate list of values in the UnityEditor

Hello, is there a way to add LOV support to components in the UE ?
What I mean is, for example the Mesh filter component. When you click the mesh it opens a SELECT MESH browser that lets you select from multiple meshes. Another example is the material that has a similar SELECT MATERIAL pop-up browser.

Let’s suppose I want to add a component that is a weapon spawn point. I would want to add that component and add a list that lets me select from a predefined list of weapons and the one I select would be the one that spawns at runtime.

Does anyone have any idea how to do that ?

edit: also if possible I want a second LOV dependent on the first; f.e. if the first can choose between rockets and bullets, the second LOV would show minigun+pistol+machinegun or bazooka+grenade launcher+rocket launcher depending on bullets or rockets. Only all done in 2 lists. Is it possible ?

You might want to learn how to create tools for Unity.

Have a look at the intermediate tutorials in this link.

If you’re doing this via a script your script could have a public variable that is an enum and it would show up as a list in the inspector. Then when the object is spawned you’d have logic that looks at your enum. For example:

    public enum WeaponTypes
    {
        Sword,
        Dagger
    }

    public WeaponTypes SelectedWeapon;

    private GameObject _sword;
    private GameObject _dagger;

    private void SpawnWeapon()
    {
        switch(SelectedWeapon)
        {
            case WeaponTypes.Sword:
                Instantiate(_sword);
                break;
            case WeaponTypes.Dagger:
                Instantiate(_dagger);
                break;
        }
    }