C++ implementation of a Function Library?

Have you marked your UFUNCTIONS BlueprintCallable and most importantly, static? Here’s an example of my Blueprint function library header:




UCLASS()
class ALMYRA_API USkillUtil : public UBlueprintFunctionLibrary
{
	GENERATED_BODY()
	
public:
	/** Fills Destination array with tiles in a diamond shape. */
	UFUNCTION(BlueprintCallable, Category=Almyra)
	static void GenerateDiamondShape(const FVector2i Center, const int32 MinRange, const int32 MaxRange, TArray<FVector2i>& Destination);
}


You don’t need to create a blueprint of this class, the methods will just show up in the global function space.

5 Likes