Material Box

Material Box

WEB Design & Material Images

Godot - Difference between preload() and load()

Godot

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")

Godot

TitleGodot - Difference between preload() and load()

CategoryGodot

Created

Update

AuthorYousuke.U