Hello guys, is there other way to get the Project Version to show it in to your game?
And by “other way” i mean, to directly acces the project settings file, instead of creating a variable, or installing a non-marketplace plugin.
Many thanks!
Hello guys, is there other way to get the Project Version to show it in to your game?
And by “other way” i mean, to directly acces the project settings file, instead of creating a variable, or installing a non-marketplace plugin.
Many thanks!
No, I mean the game version, patch version, that 3 numbers that you change every time you update your game, more explicit, in ue4 at Edit>Project Settings> Project version
Man i just said in to the question, I don’t want to use a non marketplace plugin or a variable!
Do you mean the engine version?
Ah - well, you can do this
or just put it in a variable every time you update it…
Good luck with that then…
EDIT: Apparently the project version gets written to DefaultGame.ini, if it’s something other than 1.0.0.0.
If that’s true, then you can read it with:
I got a really, truly simplest way to help!
There’s a plugin called “Kickstart Blueprint Library” in UE marketplace.
It has a BP node of “Get Project Version”, it gives you the exact project version string.
Here’s the example video
Cheers!
For anyone else who landed on this forum post looking for a C++ way to do it without installing a plugin, this code works:
FString UMyClass::GetGameVersion()
{
FString Version;
if (!GConfig)
{
return "";
}
GConfig->GetString(
TEXT("/Script/EngineSettings.GeneralProjectSettings"),
TEXT("ProjectVersion"),
Version,
GGameIni
);
return Version;
}