/Engine/Source/Runtime/CoreUObject/Public/UObject/Object.h
Create a component or subobject only to be used with the editor. They will be stripped out in packaged builds.
template<class TReturnType> TReturnType * CreateEditorOnlyDefaultSubobject ( [FName](API\Runtime\Core\UObject\FName) SubobjectName, bool bTransient )