Edit of asset "GsomLoader" Accepted
Old/Current | New/Edit | |
---|---|---|
Title | GsomLoader | GsomLoader |
Description |
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] |
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 | 0.0.1 | 0.0.1 |
Download Commit | e90e2e9175509429fb256b5a7a27e8a66fa3c181 | e90e2e9175509429fb256b5a7a27e8a66fa3c181 |
Download Url (Computed) | https://github.com/raub/gsom_loader/archive/e90e2e9175509429fb256b5a7a27e8a66fa3c181.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
|