Where can i find version number in source code

Hi there, does any one know where I can find the version number in source code? I think there is file in the source code that we can know that we are working on 4.8 or 4.9.

2 Likes

In DesktopPlatformBase.cpp FDesktopPlatformBase::GetCurrentEngineIdentifier().

You have the line "CurrentEngineIdentifier = "

with the text name of your version of the engine.

Where I can call this function? I just wondering if somewhere in the source code is hard coding a string with version number?

You dont have to call it. You ask if there was someplace in the source code where the engine version is hardcoded. Well that’s it, it’s hardcoded in that function.

Not sure if this is authoritative, but I also see the following inside
\Engine\Source\Runtime\Launch\Resources\Version.h

#define ENGINE_MAJOR_VERSION	4
#define ENGINE_MINOR_VERSION	13
#define ENGINE_PATCH_VERSION	1
5 Likes

Thank you very much, I think this is what I looking for exactly.