# SetRayTracingEnabled(bool)

> Enables or disables Ray Tracing for all Visual Effects.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.VFX](/engine/6000.7/script-reference/unityengine/vfx.md)
* **Assembly:** UnityEngine.VFXModule

```csharp
public static void SetRayTracingEnabled(bool enabled)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether Ray Tracing is enabled or not.

### Remarks

When enabled, the effects containing  Ray-traced outputs will be added to the Ray Tracing Accelaration Structure.
