I have been developing a SpawnVolume that works fine when simulating inside the editor. However, when I start the game in Develop Game mode or launch from the editor the objects are not spawned.
I have two classes class A and class B.
Class A generates a TArray of FVectors that is transported to class B through blueprints. Class A calls a custom event after the TArray is filled that starts some blueprint code that moves the TArray data from class A to class B. Then class B, being my spawnvolume, starts using these FVectors to spawn stuff.
However, when in launched mode the stuff is not spawned. I tried changing the items being spawned, I tried hardcoding the points before sending.
Is there a difference between editor mode and launch mode that I should know about? Why does it work fine in one, but not the other?
EDIT:
I found out that my transportation method does not work as it is not called in launched mode. This is the code I use to call my custom event that starts it all.
for(TObjectIterator<ASpawnVolume> Itr; Itr; ++Itr) {
Itr->StartSpawningMap();
}
Here is the BP code:
http://puu.sh/goYu0/357a0bfc60.jpg
As you can see it does print something if it is ever called, but nothing ever shows up on screen.
EDIT 2:
After some more testing I noticed that none of my BP code is being run when launching the program. My project is mainly C++, but a few things I do use BPs for. All of those things stops working when I do not play in editor.