Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/USceneComponent
Syntax
TObjectPtr< USceneComponent > ReplacementSceneComponent
Remarks
: This is needed because of order of registration of Actors
In World Partition Levels loaded actors are Registered in an atomic fashion meaning we register all their components and then call RerunConstructionScripts before loading the next actor. This means that a Parent can be Reconstructed and trash its components without notifying its attached actors.
In Non World Partition Levels when adding actors to world we sort all actors based on hierarchy, register all actors and then RerunConstructionScripts on all actors which allows handling of Attachments as attached actors are already registered when the parent gets reconstructed and so attachment is preserved.
ReplacementSceneComponent is there as a temp solution to allow finding of the replacement component of a trashed scene component.