DefaultWorkarounds
Stores the workaround configuration for a DefaultDeviceFilter.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Class
- Namespace: UnityEditor.HardwareProfiles
- Assembly: UnityEditor.CoreModule
public class DefaultWorkarounds
Remarks
This class maintains two lists of workaround names: workarounds that are forced on, and workarounds that are forced off. Workarounds not present in either list use Unity's default behavior. Use DefaultDeviceFilter.SetWorkaround to modify individual workarounds, or DefaultDeviceFilter.DisableAllWorkarounds to disable all workarounds at once.
enableddisabledFor more information, refer to Workaround hardware profile settings.
Fields
Value | Description |
|---|---|
| disabled | List of workaround names that are forced off. |
| enabled | List of workaround names that are forced on. |
Static Fields
Value | Description |
|---|---|
| DefinedWorkarounds | An array of all workaround names recognized by Unity's Vulkan backend. |
Constructors
Constructor | Description |
|---|---|
| DefaultWorkarounds() | Creates a new |
Methods
Method | Description |
|---|---|
| DisableAll | Moves all defined workarounds to the disabled list. |
| SetWorkaround | Sets the state of a specific driver workaround for this default filter. |