Editing a Config property from editor utilty widget's View Details wont save the value in config file

UCLASS(Config = Game, defaultconfig, BlueprintType)
{
GENERATED_BODY()

public:
UPROPERTY(Config, EditAnywhere, Category = Defaults)
FName Name;

}

When I change this Name propety from a ViewDetails or SinglePropertyView of Editor utility widget it is not wriiten in DefaultGame.ini

I just saw through SSettingsEditor.cpp which I think handles Project Settings’s slate.
That class and DetailsView class both have the FNotifyHook interface.
By looking at the way SSettingsEditor.cpp has implemented NotifyPostChange which is a function of the interface I found out that updating config files for config properties of the Project Settings happens there, but the implementation of NotifyPostChange in DetailsView class is so simple, so I have decided to derive from DetailsView Class and override NotifyPostChange by just copy pasting the code from SSettingsEditor.cpp.
I hope it all works, i’ll tell you guys :slight_smile:

Update: Yes, with a bit of manipulations and o bunch of other common tricks what I described above worked. Don’t forget to add SharedSettingsWidgets to your “public dependency module names”.

Cheers :sunglasses:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.