Can I get array member before deleting it at detail panel?

Hello,

I have an array with self-defined struct. When I delete a member in this array, I need to store the variable for further usage.

For example in following picture, I want to get “StartID” when the member at index 0 is pending delete.

238209-deletearraymember.png

I’ve tried PostEditChangeChainProperty, but the member was already deleted at the moment.

Then I looked into PreEditChange(UProperty* PropertyAboutToChange), but the input UProperty seems can’t get members in TArray. And I wonder how to know it is pending delete, not som else action.

I also found PreEditChange(FEditPropertyChain & PropertyAboutToChange), but have no idea how it works.

Does anyone have a clue? Any help would be appreciated.

Update:

I successfully get the TArray of struct by UProperty::ContainerPtrToValuePtr. What a magical thing.

The rest problem is how to know this array member is pending delete?

I found that using destructor in struct , I can get anything I want before delete array member.

This problem has been solved.