Skip to content

: res load

Load a specific resource. To store it in a variable, you can do e.g. :set icon :res load res://icon.png

Usage: : res load [OPTIONS] <PATH>...

Arguments

Name Description Possible values Default
<PATH> The path of the resource, e.g. res://icon.png

Options

Name Description Possible values Default
-t
--threaded
If set, use ResourceLoader to load the resource on a background thread. May be faster and reduce lag spikes, but could cause instability or mem leaks, so be careful! true, false