In the header, just declare it without assigning a value:
static float PI;
then in cpp file initialize it:
// don't add static keyword here
float UMyBlueprintFunctionLibrary::PI = 3.14;
In the header, just declare it without assigning a value:
static float PI;
then in cpp file initialize it:
// don't add static keyword here
float UMyBlueprintFunctionLibrary::PI = 3.14;