Instantiating blueprint types in editor

I believe I have a race condition where my PlayerPawn is calling a function from a factory class in my GameState, which isn’t actually being created until the BeginPlay of the GameState - which for some reason is always happening first in editor, but not in the packaged game.

Do you know how I can possibly set my factory from the editor defaults instead of creating new objects in C++?

This is what I have been doing up until now:

I would instead like to be able to set the factory classes directly from within my BP_GameState, but none of my factories are showing up:

I know this is because my Blueprint factories are not actually objects, but classes that need to be instantiated, but how can I make them objects that are avaliable before any BeginPlay() calls are made?

Making them Instanced should be what you want.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms