- Open the editor
- Create a new GameInstance C++ Class
- In the .h, add
UPROPERTY(Category = "Test", EditAnywhere, BlueprintReadOnly)
- Create a blueprint based off of your C++ Game Instance
- In Edit->Project Settings->Maps and Modes, ensure to set the Default Game Instance to the blueprint game instance you created in the previous step
- Open the GameInstance blueprint
- Get TestTimespan
- Select TestTimespan and set a default value for it
- Break the timespan and print the results of each using an Append node on Event Init
Result: When you PIE, the string that is printed is 00000 instead of whatever value you set as the default in your blueprint.
Expected: The default value that was set would be printed.