Export Variant for Inspector

Godot Version

4.4 Stable

Question

Is there a way to export just a variant so that in the inspector you can create any type of variant variable?

I know that you can create an array and just have one element. But obviously that’s not ideal.

Essentially I would like this:

With the ability to create a new variant from the drop-down. But without the array part. Is this possible?

Edit: Forgot to mention I’m doing this in c#

You’ll need to create an inspector plugin and re-create that behavior as I don’t think it’s exposed.