---
title: SetFlag(DLSSFeatureFlags, bool)
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/nvidia/dlsscommandinitializationdata/setflag
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/nvidia/dlsscommandinitializationdata/setflag.md
last_updated: 2026-10-07
generated_at: 2026-11-11T15:59:48.601Z
locale: en-us
---

# SetFlag(DLSSFeatureFlags, bool)

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

## Definition

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

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

### Parameters

**** (\[DLSSFeatureFlags]\(/engine/7000.0/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/7000.0/script-reference/unityengine/nvidia/dlssfeatureflags.md)
