Ray tracing tickbox in game menu?

Not directly. It requires a restart at the very least.
Download, install, and try out fortnite. Copy how they do it there.