ProfileWorkarounds
Stores the workaround configuration for a ProfileDeviceFilter.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Class
- Namespace: UnityEditor.HardwareProfiles
- Assembly: UnityEditor.CoreModule
- Inherits from: DefaultWorkarounds
public class ProfileWorkarounds : DefaultWorkarounds
Remarks
Extends DefaultWorkarounds with a list. Workarounds in the 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.
defaultdefaultUse ProfileDeviceFilter.SetWorkaround to modify individual workarounds, or ProfileDeviceFilter.DisableAllWorkarounds to disable all workarounds at once.
For more information, refer to Workaround hardware profile settings.
Fields
Value | Description |
|---|---|
| default | List of workaround names that use Unity's default behavior. |
Constructors
Constructor | Description |
|---|---|
| ProfileWorkarounds() | Creates a |
Methods
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. |