Godot - Difference between preload() and load()
The text is introducing the differences between the preload()
and load()
functions for loading resources in GDScript.
preload()
loads resources asynchronously.
It is possible to load resources even during execution.
var item = preload("res://item.tscn")
load()
loads resources synchronously.
Subsequent processes will not be executed until resource loading is complete.
var item = load("res://item.tscn")