ImmersiveRPG / GodotAsyncLoader

A Godot plugin to load, instance, and add scenes asynchronously using a background thread.
https://godotengine.org/asset-library/asset/1376
MIT License
37 stars 4 forks source link

Make SceneAdder groups customizable #2

Closed workhorsy closed 2 years ago

workhorsy commented 2 years ago

We shouldn't need to hard code groups to add. Make it so they are setup in code:

const CATEGORIES := [
    "terrain",
    "building",
    "furniture",
    "plant",
    "item",
    "npc",
    "etc",
]

func _init() -> void:
    SceneAdder.set_categories(CATEGORIES)