Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

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
Profile.json
file that is included in the application. At runtime, when a device doesn't match any ProfileDeviceFilter, Unity applies the DefaultDeviceFilter settings.
To get a ProfileDatabase instance, use the
DefineHardwareProfile
callback method when you implement the
AndroidHardwareProfiles
class.
Note: 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

CreateFilterCreates a new ProfileDeviceFilter targeting devices that match the specified criteria and adds it to the database.
GetDefaultFilterReturns the DefaultDeviceFilter, which allows you to define the default settings applied to all remaining unmatched devices.