You'll see that the name of the GameInstance created is called "Default_YourCustomGameInstance". To see this, put a breakpoint in your custom GameInstance constructor and run Unreal Editor by clicking F5 in VS. These classes are prefixed with "Default_". When you compile, Unreal Editor refreshes all of its "Default" class instances. Reason: I believe the root issue here is the destruction of any custom GameInstance class is not properly cleaned up after compilation succeeds. Workaround: Whenever you compile, if the compile is successful, NEVER compile again until you have first played your game through PIE. The problem steps from having custom C++ game instance. I have documented the steps I took to better understand why this crash occurs in this Unreal Engine Forums thread. This issue has been plaguing me **years** now, I just thought I would update this thread with a "workaround" I've found.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |