I have created custom blueprint function library that contains only one function:
.h file:
UCLASS()
class MYPROJECT_API UMyBlueprint : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
UFUNCTION(BlueprintPure, meta = (DisplayName = "ProjectVersion", CompactNodeTitle = "ProjectVersion"), Category = "System Information")
static FString SetProjectVersion();
};
and .cpp file:
FString UMyBlueprint::SetProjectVersion()
{
FString ProjectVersion;
GConfig->GetString(TEXT(“/Script/EngineSettings.GeneralProjectSettings”), TEXT(“ProjectVersion”), ProjectVersion, GGameIni);
return ProjectVersion;
}
Everything works perfect.
However, if I try to add another function to this same class (library) then the project can’t build.
I would appreciate some help.