Why gameInstance is created twice when we run PIE(play-in-editor)?

I can’t understand why gameInstance is created twice during pie (play-in-editor) according to this chart:

https://docs.unrealengine.com/latest/images/Gameplay/Framework/GameFlow/GameFlowChart.png

On the left side:
First UGameInstance is created after: User presses “Play in Editor” button.
Then second instance is created after Create UOnlineSessions, it happen in block: CreatePIEGameInstance.

What is purpose of this second gameInstance? Why the first one can’t be used for PIE?

1 Like