IsRayTracingEnabled

Returns `true_ when running on RT-capable machine, RT support is enabled for the project and by game graphics options.

Windows
MacOS
Linux

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/RenderResource.h

Include

#include "RenderResource.h"

Source

/Engine/Source/Runtime/RenderCore/Private/RenderResource.cpp

Syntax

bool IsRayTracingEnabled()

Remarks

Returns `true_ when running on RT-capable machine, RT support is enabled for the project and by game graphics options. This function may only be called at runtime, never during cooking.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss