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
A CSV to Resource importer. I have a CSV of data and an EditorImportPlugin addon that lets me map the CSV columns to fields on a custom resource for one-click mass import. Basically the CSV Translation importer but for custom resources.
Describe the problem or limitation you are having in your project
My EditorImportPlugin defines multiple options the user can change depending on the format of the CSV, however it does not allow defining descriptions for those columns:
A first time user would have no clue what some columns do or how they work. The ability to define helpful descriptions is essential for ease of use of editor tooling.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
EditorImportPlugin::_get_import_options() currently returns an array of Dictionaries with 5 poorly documented keys:
name, default_value, property_hint (optional), hint_string (optional), usage (optional)
I suggest adding support for a description key which, when used, fills the description field in the tooltip of your import option.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Here's an example of what the description field cool look like:
func_get_import_options(_path, preset):
return [
{
name="resource_name_column",
description="The 0-based CSV column number that will be used to generate sluggified resource file names upon import.",
default_value=0,
},
]
If this enhancement will not be used often, can it be worked around with a few lines of script?
I don't believe this can currently be worked around as per this comment.
Is there a reason why this should be core and not an add-on in the asset library?
N/A
The text was updated successfully, but these errors were encountered:
This would be nice. We can simply add a ## Comment above @export values to get tooltip descriptions, but it seems there is no way to do this for importer options.
Describe the project you are working on
A CSV to Resource importer. I have a CSV of data and an
EditorImportPlugin
addon that lets me map the CSV columns to fields on a custom resource for one-click mass import. Basically the CSV Translation importer but for custom resources.Describe the problem or limitation you are having in your project
My
EditorImportPlugin
defines multiple options the user can change depending on the format of the CSV, however it does not allow defining descriptions for those columns:A first time user would have no clue what some columns do or how they work. The ability to define helpful descriptions is essential for ease of use of editor tooling.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
EditorImportPlugin::_get_import_options()
currently returns an array of Dictionaries with 5 poorly documented keys:name, default_value, property_hint (optional), hint_string (optional), usage (optional)
I suggest adding support for a description key which, when used, fills the description field in the tooltip of your import option.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Here's an example of what the description field cool look like:
If this enhancement will not be used often, can it be worked around with a few lines of script?
I don't believe this can currently be worked around as per this comment.
Is there a reason why this should be core and not an add-on in the asset library?
N/A
The text was updated successfully, but these errors were encountered: