---
title: SetFlag(DLSSFeatureFlags, bool)
product: Unity Editor
version: '6000.0'
latest_version: '7000.0'
status: This page documents version 6000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/6000.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-12-05
generated_at: 2026-12-05T02:29:07.708Z
locale: en-us
---

# SetFlag(DLSSFeatureFlags, bool)

> Helper function. Controls the feature flags used by DLSS. Additional Resources: DLSSFeatureFlags.

## Definition

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

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

### Parameters

**** (\[DLSSFeatureFlags]\(/engine/6000.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.
