UE4-EditorScriptingToolsPlugin
UE4-EditorScriptingToolsPlugin copied to clipboard
DetailCustomization Changed the default value of UPROPERTY which class using EditInlineNew.
UCLASS(DefaultToInstanced, Blueprintable, EditInlineNew)
class DEMO_CLIENT_API UAttributeSet : public UObject
{
GENERATED_UCLASS_BODY()
public:
...
};
USTRUCT(BlueprintType)
struct FAttrKeyValuePair
{
GENERATED_BODY()
UPROPERTY(BlueprintReadWrite, EditAnywhere)
String Type;
UPROPERTY(BlueprintReadWrite, EditAnywhere)
TObjectPtr<UAttributeSet > AttrSet;
};
In DetailCustomizationInstance Blueprint, I get the customization object, read the data and override it with construct object by class, refresh the panel can see the instance has config in panel. However, when I changed the Map or closed the editor, the instance object is reset to None. It seems like the Construct Object is destory. How can I overrider the blueprint default instance.