Now spawns objects in layers on spawn, not only on resource loaded.