why is the spawn function, it does not work?

Make sure that you are calling the spawn function from begin play and not the constructor. It will only work if the game world already exists.

If it’s spawned then try something like this:

1 Like