Knowing which RHI has been used in a project from the code?

you can also use FApp::GetGraphicsRHI()
it returns a string. like “Vulkan (SM6)”
it’s the easier way i found.