Edit of asset "Gsom Loader" Accepted
Old/Current | New/Edit | |
---|---|---|
Title | Gsom Loader | GsomLoader |
Description |
A threaded async loader for Godot resources. Loads a resource in another thread and emits signals. There is a singleton `GsomLoader` - a concurrent loader. And it is possible to create any number of queued loaders - `GsomLoadQueue`. Both have similar APIs. ``` GsomLoader.finished_load.connect(_handleResource) GsomLoader.changed_progress.connect(_handleProgress) GsomLoader.failed_load.connect(_handleFail) GsomLoader.load_async("res://test.tscn") ``` See GitHub readme or the root example.gd for more details. https://github.com/raub/gsom_loader |
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] |
Category | Scripts | Scripts |
License | MIT | MIT |
Repository Provider | GitHub | GitHub |
Repository Url | https://github.com/raub/gsom_loader | https://github.com/raub/gsom_loader |
Issues Url | https://github.com/raub/gsom_loader/issues | https://github.com/raub/gsom_loader/issues |
Godot version | Godot 4.2 | Godot 4.2 |
Version String | 1.0.1 | 0.0.1 |
Download Commit | b07e46d21b77a97b01407c0d2bc09b4eb7813677 | e90e2e9175509429fb256b5a7a27e8a66fa3c181 |
Download Url (Computed) | https://github.com/raub/gsom_loader/archive/b07e46d21b77a97b01407c0d2bc09b4eb7813677.zip | https://github.com/raub/gsom_loader/archive/e90e2e9175509429fb256b5a7a27e8a66fa3c181.zip |
Icon Url |
https://raw.githubusercontent.com/raub/gsom_loader/0.0.1/icon.png
![]() |
https://raw.githubusercontent.com/raub/gsom_loader/0.0.1/icon.png
![]() |