Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

GsomLoader

An asset by RaubTieR
The page banner background of a mountain and forest
GsomLoader hero image

Quick Information

0 ratings
GsomLoader icon image
RaubTieR
GsomLoader

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]

Supported Engine Version
4.2
Version String
0.0.1
License Version
MIT
Support Level
community
Modified Date
11 months ago
Git URL
Issue URL

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]

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
GsomLoader icon image
RaubTieR
GsomLoader

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]

Supported Engine Version
4.2
Version String
0.0.1
License Version
MIT
Support Level
community
Modified Date
11 months ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers