Get Project Version

A simple method exposing the project Version to Blueprints

#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"

UCLASS()
class YDEV_API UYDEVFunctionLibrary : public UBlueprintFunctionLibrary
{
	GENERATED_BODY()

public:
	UFUNCTION(BlueprintCallable, meta = (DisplayName = "GetProjectVersion"), Category="PojectSettings")
	static void GetProjectVersion(FString& Version);
};
#include "Extension/UYDEVFunctionLibrary.h"
#include "GeneralProjectSettings.h"

void UYDEVFunctionLibrary::GetProjectVersion(FString& Version)
{
	Version = *GetDefault<UGeneralProjectSettings>()->ProjectVersion;
}