Facepunch / sbox-issues

180 stars 12 forks source link

Autocomplete attribute provider for (string) properties #7490

Open MrBrax opened 1 week ago

MrBrax commented 1 week ago

What can't you do?

When enums aren't enough but you still want inspector safety, would be cool with autocomplete/dropdown with possible values. In my case it's a dictionary <string, float> where it's internally restricted to a list of strings but you can type anything in the inspector.

How would you like it to work?

Probably an attribute that references a method that returns a list of strings or whatever the property type is

What have you tried?

nothing

Additional context

No response