Actor->Actor hard references trigger a warning when trying to delete the referenced actor in the level editor(UUnrealEdEngine::edactDeleteSelected). Actor->Component->Actor references do not trigger a warning. Looks like the ActorReferenceMap does not consider references serialized in components. 

Steps to Reproduce

From the reporting UDN:

Given an Actor A which has an Actor Component with an Object Reference (Hard Reference) Property, and given this Property being set with a Reference to Actor B in a Level.

When deleting Actor B, no Message Box appears, warning of the Reference that will be broken, and the Property of the Actor A Actor Component is reset to None.

Expected Result: As with an Object Reference (Hard Reference) directly on an Actor, the user should see a Message Box appear when trying to delete the Referenced Actor (see below for an example).

Have Comments or More Details?

There's no existing public thread on this issue, so head over to AnswerHub just mention UE-135049 in the post.

Login to Vote

ComponentUE - Editor - Framework
Affects Versions5.0-early access
Target Fix5.1
CreatedNov 15, 2021
UpdatedNov 24, 2021