willnationsdev / log

A log of my ongoing and planned development efforts.
MIT License
0 stars 0 forks source link

Godot 3.2: ClassType exports in GDScript #10

Open willnationsdev opened 6 years ago

willnationsdev commented 6 years ago

Add export option for exporting ClassType wrappers. Functions like a String when assigning/getting a value from the Inspector, but the property itself (in scripts too) is a regular ClassType reference object. Inspector should display an enumerated list of allowed typenames. Should be able to constrain results by an inheritance constraint. Something like...

# provides a list of types deriving "Node", better if the user can filter with a typeahead.
export(ClassType, "Node") var node_type = ClassType.new()