# SetFlag(DLSSFeatureFlags, bool)

> Helper function. Controls the feature flags used by DLSS..

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.NVIDIA](/engine/6000.6/script-reference/unityengine/nvidia.md)
* **Assembly:** UnityEngine.NVIDIAModule

```csharp
public void SetFlag(DLSSFeatureFlags flag, bool value)
```

### Parameters

**** (\[DLSSFeatureFlags]\(/engine/6000.6/script-reference/unityengine/nvidia/dlssfeatureflags)): The feature flag to set or unset.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Indicates whether to set or unset the flag.

### Remarks

Additional Resources: [DLSSFeatureFlags](/engine/6000.6/script-reference/unityengine/nvidia/dlssfeatureflags.md)
