You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem or limitation you are having in your project
Some classes have lots of export vars and since they are presented as a simple long list it's often hard to find fast what i'm searching for.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
It would be really helpful if exported vars were presented in a cleaner and more organized way, i thought of some kind of custom grouping like for the vars of the base classes, think of "Transform", "Matrix", "Visibility" for Spatial or "Geometry", Baked Light" and "Lod" for GeometryInstance for example.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
I don't know what would be the best way to do it, i think that one solution could be writing in the code something like:
...
export group "infos"
export var name:="dude"
export var age:=30
...
export group "stats"
export var hp:=100
export var strength:=10
...
in this case name, age and all the following export vars before the group "stats" would be grouped in "infos" while hp, strength and the following export vars would be grouped in "stats".
An alternative and more general solution would be to give us the possibility to export var that are instances of classes, it would work like this:
class Stats:
var hp:=100
var strength:=100
...
pass
export(Stats) stats
in that case in the editor we would see hp and strength grouped under "stats".
If this enhancement will not be used often, can it be worked around with a few lines of script?
I don't think it can be done with a few line of scripts, but in any case i think it would be used often.
Is there a reason why this should be core and not an add-on in the asset library?
I think something like this is definitively core, but i wouldn't mind an add-on i guess.
The text was updated successfully, but these errors were encountered:
Describe the project you are working on
Dungeon RPG
Describe the problem or limitation you are having in your project
Some classes have lots of export vars and since they are presented as a simple long list it's often hard to find fast what i'm searching for.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
It would be really helpful if exported vars were presented in a cleaner and more organized way, i thought of some kind of custom grouping like for the vars of the base classes, think of "Transform", "Matrix", "Visibility" for Spatial or "Geometry", Baked Light" and "Lod" for GeometryInstance for example.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
I don't know what would be the best way to do it, i think that one solution could be writing in the code something like:
...
export group "infos"
export var name:="dude"
export var age:=30
...
export group "stats"
export var hp:=100
export var strength:=10
...
in this case name, age and all the following export vars before the group "stats" would be grouped in "infos" while hp, strength and the following export vars would be grouped in "stats".
An alternative and more general solution would be to give us the possibility to export var that are instances of classes, it would work like this:
class Stats:
var hp:=100
var strength:=100
...
pass
export(Stats) stats
in that case in the editor we would see hp and strength grouped under "stats".
If this enhancement will not be used often, can it be worked around with a few lines of script?
I don't think it can be done with a few line of scripts, but in any case i think it would be used often.
Is there a reason why this should be core and not an add-on in the asset library?
I think something like this is definitively core, but i wouldn't mind an add-on i guess.
The text was updated successfully, but these errors were encountered: