/Engine/Source/Runtime/CoreUObject/Public/UObject/Object.h
Called during subobject creation to mark this component as editor only, which causes it to get stripped in packaged builds
virtual void MarkAsEditorOnlySubobject()