How to get the Project Version for use in blueprints?

  1. Edit the project version setting (Edit > Project settings… > Project > Description > About > Project Version)
  2. Use the [VictoryPlugin][1]'s Victory Get Custom Config Var String node to access the value:

316458-screenshot-38.png

FYI, UFNCTION’s Metadata Specifiers “FriendlyName” is maybe deleted.
I don’t know what it was, but just change it to “DisplayName” or delete it. It worked fine for me in 4.26.2.

For anyone who comes across this and using UE5, I got this to work:

ProjectVersionBlueprint.h

#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "ProjectVersionBlueprint.generated.h"

/**
 * 
 */
UCLASS()
class MENUTEST_API UProjectVersionBlueprint : public UBlueprintFunctionLibrary
{
	GENERATED_BODY()

		UFUNCTION(BlueprintPure, meta = (DisplayName = "Get Project Version"), Category = "System Information")
			static FString GetProjectVersion();
};

Where it says “MENUTEST_API” change the “MENUTEST” portion to whatever the name of your project is in all caps.

ProjectVersionBlueprint.cpp

#include "ProjectVersionBlueprint.h"

FString UProjectVersionBlueprint::GetProjectVersion()
{
	FString ProjectVersion;
	GConfig->GetString(
		TEXT("/Script/EngineSettings.GeneralProjectSettings"),
		TEXT("ProjectVersion"),
		ProjectVersion,
		GGameIni
	);
	return ProjectVersion;
}
2 Likes

Hi guys, there’s a truly simplest solution! You can find 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!