Documentation on grouping exports here: https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_exports.html#grouping-exports
Says "The second argument of the annotation can be used to only group properties with the specified prefix."
But I can't figure out how exactly that works. Anyone here know?

  • Toxe replied to this.
  • StaticYeti likes this.
  • Latte I have not used that before but looks like adding a prefix cuts the prefix away from the exported property names and groups only those with the prefix together.

    @export_group("Test values", "test")
    @export var test_float := 100.0
    @export var test_int := 200
    @export var test_string := "something"
    @export var foo := "foo"

    Latte I have not used that before but looks like adding a prefix cuts the prefix away from the exported property names and groups only those with the prefix together.

    @export_group("Test values", "test")
    @export var test_float := 100.0
    @export var test_int := 200
    @export var test_string := "something"
    @export var foo := "foo"

      Toxe I knew underscores disappeared but I didn't know about the prefix thing! That's useful.

      This is awesome. I am going to have to do this on my projects. I was wondering how to group them in Godot since I used to do this in Unity quite often and I'm new to godot. Super useful and thanks for posting about it!