UE4-EditorScriptingToolsPlugin icon indicating copy to clipboard operation
UE4-EditorScriptingToolsPlugin copied to clipboard

DetailCustomization Changed the default value of UPROPERTY which class using EditInlineNew.

Open 007havegone opened this issue 11 months ago • 0 comments

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.

007havegone avatar Mar 07 '24 09:03 007havegone