Game dev
Saved & recent

Instance

Related terms: instantiation, spawn, template, reference

One concrete object created from a class, prefab or other template. Three enemies can use the same template while each instance has its own position, health and current target.

Spawning creates an instance. Copying a reference to an existing enemy does not spawn another one. Instances may still share resources such as meshes and materials, so changing a shared resource can affect all of them.

Further reading
Godot: Nodes and scene instances
template crate 81 100% health (2, 1) crate 82 64% health (5, 3) crate 83 28% health (9, 2)
The three crates use one template and each has its own position and health.

View in the full Game dev collection