Enabling Raytracing in-game

Hello, I am almost finished with the “demo” version of my game and I’m currently working on graphics and enabled Raytracing for my project.
The Question now is how i would let the End User decide (via Widget Button click) if Raytracing should be enabled or not.
I thought about using the console command on button press, but console command are excluded in the shipping version (At least that’s what i think to remember)
Cheers!

Have you found a solution to this problem? I’m running into the same thing.

You can use the console commands just fine, they aren’t just accessible via the prompt menu in shipping builds, but their functionality remains same regardless of the build type.

I came up with a solution myself: When the player turns on raytracing in the options menu it will change my mirror materials to the ones with RT and prompt the command “r.ReflectionMethod 3”. if it turned off again it willd change the materials to the ones without RT and prompt the command “r.ReflectionMethod 1”.

Hope this helps! :wink:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.