Ok, I successfully built the two classes and now have a custom Game Instance called “MyGameInstance” and set it as my game instance in project settings.
Then I also have a node called “Flush World Composition” with a “world context object” pin, and… I’m lost.
Shoud I use this node somewhere while you said “You should NOT call this function from your level blueprint immediatly in the BeginPlay node”?
Shoud the function be fired by the “UMyFunctionLibrary::FlushWorldComposition(this);” of the game instance class?
What is supposed to be connected to the pin “world context object”? the level file of the persistant level?
With the node connected to the beginplay event of the persistent level blueprint and the level file of the persistent level connected to the pin, it does nothing.
Same a “self” node connected to the pin.
Same without using the node.