DefaultDeviceFilter
Represents the default hardware profile that applies to all Android devices that don't match a specific ProfileDeviceFilter.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEditor.HardwareProfiles
- Assembly: UnityEditor.CoreModule
- Inherits from: GenericHardwareDescription
public class DefaultDeviceFilter : GenericHardwareDescription
Remarks
The default device filter defines baseline settings for all devices. Devices that don't match any ProfileDeviceFilter created via ProfileDatabase.CreateFilter use these settings. Retrieve the default filter with ProfileDatabase.GetDefaultFilter.
Use this class to set minimum version requirements, configure the graphics API, and manage driver workarounds for unmatched devices.
For more information, refer to Vulkan hardware profiles.
Constructors
Constructor | Description |
|---|---|
| DefaultDeviceFilter() | Creates a DefaultDeviceFilter with empty version strings, default graphics API, and no workaround overrides. |
Properties
Property | Description |
|---|---|
| MinAndroidOsVersion | The minimum Android OS version required for devices that use this default filter. |
| MinDriverVersion | The minimum Vulkan driver version required for devices that use this default filter. |
| MinVulkanVersion | The minimum Vulkan API version required for devices that use this default filter. |
Methods
Method | Description |
|---|---|
| DisableAllWorkarounds | Disables all defined driver workarounds for this default filter. |
| SetGraphicsAPI | Sets the graphics API to be used on devices that match the default filter. |
| SetWorkaround | Sets the state of a specific driver workaround for this default filter. |