The Infinite Loot Box: Mastering Prefabs in Verse
verse-library
SpawnTransform := transform{
Translation := Location,
Rotation := IdentityRotation(),
Scale := vector3{X := 1.0, Y := 1.0, Z := 1.0}
}
# SpawnProp stamps our prefab into the world at SpawnTransform.
# It returns an option, so we unwrap it with `if`.
# Note: SpawnProp is the real UEFN API for spawning prop assets
# at runtime; full Entity/Instantiate APIs are not yet public.
SpawnedProp := SpawnProp(TrapPrefab, SpawnTransform)
# The prop is visible and collidable the moment it spawns.
# If your asset has a trap_device component wired up in the