/Engine/Source/Editor/SubobjectEditor/Public/SSubobjectEditor.h
If this subobject is an actor component, then return its template. Otherwise it will return null
const [UActorComponent](API\Runtime\Engine\Components\UActorComponent) * GetComponentTemplate() const