ProfileDatabase
The root container for Vulkan hardware profiles, holding the default filter and device-specific profiles.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Class
- Namespace: UnityEditor.HardwareProfiles
- Assembly: UnityEditor.CoreModule
public class ProfileDatabase
Remarks
Use ProfileDatabase to configure how Unity handles Vulkan driver workarounds, graphics API selection, and graphics jobs settings across different Android devices. The database contains a single DefaultDeviceFilter and zero or more ProfileDeviceFilter instances.
At build time, Unity serializes the database into a file that is included in the application. At runtime, when a device doesn't match any ProfileDeviceFilter, Unity applies the DefaultDeviceFilter settings.
Profile.jsonTo get a ProfileDatabase instance, use the callback method when you implement the class.
DefineHardwareProfileAndroidHardwareProfilesNote: You can't use Vulkan hardware profiles and Vulkan Device Filtering Assets at the same time. When both exist, hardware profiles take precedence.
For more information, refer to Vulkan hardware profiles.
Constructors
Constructor | Description |
|---|---|
| ProfileDatabase() | Creates a ProfileDatabase with a default filter and an empty list of profiles. |
Methods
Method | Description |
|---|---|
| CreateFilter | Creates a new ProfileDeviceFilter targeting devices that match the specified criteria and adds it to the database. |
| GetDefaultFilter | Returns the DefaultDeviceFilter, which allows you to define the default settings applied to all remaining unmatched devices. |