GsomLoader's icon

GsomLoader 0.0.1 Scripts 4.2 Community

Submitted by user RaubTieR; MIT; 2024-06-09

A threaded async loader for Godot resources. Loads a resource in another thread and then calls your callback(s).

[codeblock]
func _load() -> void:
print("Load started...")
GsomLoader.load_async("res://test.tscn", _cb, _stat)

func _cb(_res: Resource) -> void:
print("Complete!")

func _stat(progress: float, _status: ResourceLoader.ThreadLoadStatus) -> void:
print("Progress %s..." % progress)
[/codeblock]


View files Download Submit an issue Recent Edits