@export question

Godot 4.3

For custom exported variables, we can group them together using @export_group(“Group Name”). But is there a way to make more properties visible in the inspector only when a certain property is set to true? And when false, they are hidden? I notice the inspector does this already for a lot of built-in nodes.

Yes and no. It is possible with overriding _get_property_list. No, there is no nice @export shorthand currently.
There is an open proposal (with a workaround): Adding @export_if(condition) to streamline conditioned properties exposing in inspector · Issue #9842 · godotengine/godot-proposals · GitHub

1 Like

Okay, thanks