You would normally export PackedScene as
export(PackedScene) var scene = preload('...')
But I want to categorize the variable, so I advance export it.
func _get_property_list() -> Array:
return [
{
name='scene',
type=TYPE_OBJECT
}
]
The thing is.. there is no TYPE_PACKEDSCENE
. I tried to export as TYPE_OBJECT
, It just exports all objects. Image
This also happens to every kind of export that TYPE_
doesn't have. Please, let me know if there is any better way for better categorizing export or it is coming for gdscript 4.0.