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

ProfileDatabase.GetDefaultFilter

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

Declaration

public DefaultDeviceFilter GetDefaultFilter();

Description

Returns the DefaultDeviceFilter, which allows you to define the default settings applied to all remaining unmatched devices.

Use the returned filter to set minimum version requirements, configure the graphics API, and manage driver workarounds for devices that don't match any ProfileDeviceFilter.

using UnityEditor;
using UnityEditor.Android;
using UnityEditor.HardwareProfiles;

public class PrimaryHardwareProfile : AndroidHardwareProfiles { public override void DefineHardwareProfile(ProfileDatabase database) { // Configure the default filter for all devices var defaultFilter = database.GetDefaultFilter(); defaultFilter.SetGraphicsAPI(GraphicsAPI.UseVulkan); } }