Skip to content

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

@007havegone

Description

@007havegone
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions