Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

ProfileDatabase

class in UnityEditor.HardwareProfiles

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

The root container for Vulkan hardware profiles, holding the default filter and device-specific profiles.

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
ProfileDatabaseCreates a ProfileDatabase with a default filter and an empty list of profiles.

Public 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.