class in UnityEditor.HardwareProfiles
/
Inherits from:HardwareProfiles.DefaultWorkarounds
Stores the workaround configuration for a ProfileDeviceFilter.
Extends DefaultWorkarounds with a default list. Workarounds in the default list let Unity decide whether to apply them based on device properties. This three-state model (enabled, disabled, default) allows device-specific profiles to override or defer to Unity's automatic workaround detection.
Use ProfileDeviceFilter.SetWorkaround to modify individual workarounds, or ProfileDeviceFilter.DisableAllWorkarounds to disable all workarounds at once.
For more information, refer to Workaround hardware profile settings.
| Constructor | Description |
|---|---|
| ProfileWorkarounds | Creates a ProfileWorkarounds instance that contains empty enabled, disabled, and default lists. |
| Method | Description |
|---|---|
| ClearAll | Resets all workarounds to the default state. |
| DisableAll | Moves all defined workarounds to the disabled list. |
| SetWorkaround | Sets the state of a specific driver workaround for this profile. |
| Property | Description |
|---|---|
| DefinedWorkarounds | An array of all workaround names recognized by Unity's Vulkan backend. |