/Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h
Returns information about the currently active Play In Editor session. Unset if there is no active PIE session.
const [TOptional](API\Runtime\Core\IO\TOptional)< [FPlayInEditorSessionInfo](API\Editor\UnrealEd\FPlayInEditorSessionInfo) > GetPlayInEditorSessionInfo() const