This is how I’ve made mine work.
// Header file
UCLASS(Blueprintable, Config=Input)
class PROJECT_API UMyConfig : public UObject
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintCallable)
void SaveConfig();
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Settings", Config)
int MyConfigVar;
};
// cpp file
void UMyConfig::SaveConfig()
{
Super::SaveConfig();
}