You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Export attribute fixes and improvements
- Allow non-public fields to be exported as well (to avoid confusion). - Set PROPERTY_HINT_RESOURCE_TYPE for resource derived fields. - Support enums and automatically fill PROPERTY_HINT_ENUM's hint_string for enum fields.
This commit is contained in:
@@ -7,13 +7,11 @@ namespace Godot
|
||||
{
|
||||
private int hint;
|
||||
private string hint_string;
|
||||
private int usage;
|
||||
|
||||
public ExportAttribute(int hint = GD.PROPERTY_HINT_NONE, string hint_string = "", int usage = GD.PROPERTY_USAGE_DEFAULT)
|
||||
public ExportAttribute(int hint = GD.PROPERTY_HINT_NONE, string hint_string = "")
|
||||
{
|
||||
this.hint = hint;
|
||||
this.hint_string = hint_string;
|
||||
this.usage = usage;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user