-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding missing group Godot annotations #605
Comments
+1, this would be really nice for structuring the editor. |
Atm I'm thinking about integrating it into the existing This would have the benefit of not having to rely on property ordering as well as being explicit while having the drawback of needing to write the same group name for possibly multiple properties. Any objections or different suggestions? |
Being more explicit would fit our current approach where every member needs to be explicitly registered instead of implicit |
A couple of considerations I would like to add here:
|
True good point. |
Given that GDScript got annotations too since the 4.0.0 version, I'd rather follow the same model as them when possible. |
I've got two more points in favor of using the option proposed by @gabryon99 :
@Export(group = "A")
@RegisterProperty
lateinit var property1: String
@Export(group = "A")
@RegisterProperty
lateinit var property2: String
@Export(group = "B")
@RegisterProperty
lateinit var property3: String
@Export(group = "A")
@RegisterProperty
lateinit var property4: String It's very ambiguous what would happen in the editor for this case. Will we produce two groups named |
Yeah i see these points and agree. Let the property ordering do it's job then. |
While working on manager classes, it is useful to group related properties, using the
@export_group
(https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_exports.html#grouping-exports) annotation.However, at the moment, this annotation is not available for Kotlin. It'd be nice to have it!
The text was updated successfully, but these errors were encountered: