the engine version is is prebuild 4.17.2.
GameInstance::Init called in editor mode, everything is prefect.
but this function is not called in packaged client.
the engine version is is prebuild 4.17.2.
GameInstance::Init called in editor mode, everything is prefect.
but this function is not called in packaged client.
sorry for that i forgot to explain the GameInstance class is write in to a plugin.
i just create a new project, then create a plugin for this project from editor plugin window.
i found the reason from this post How to package game with My Engine Plugin? - Platform & Builds - Unreal Engine Forums
**the problem is the plugin must mark as runtime plugin. **
edit the .plugin file. Modules > Type = RunTime.
{
"FileVersion": 3,
"Version": 1,
...
"Installed": false,
"Modules": [
{
"Name": "XXXXPlugin",
"Type": "RunTime",
"LoadingPhase": "Default"
}
]
}