Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

ProfileDeviceFilter

class in UnityEditor.HardwareProfiles

/

Inherits from:HardwareProfiles.SpecificHardwareDescription

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

Represents a hardware profile for a specific Android device or group of devices.

A profile device filter targets specific devices by GPU vendor, GPU model, device brand, and product codename. Create instances with ProfileDatabase.CreateFilter. When a device matches the filter criteria, Unity applies the profile's workaround, graphics API, and graphics jobs settings instead of the DefaultDeviceFilter settings.

The filter parameters support regular expressions for flexible device matching. For example, "((G|g)oogle)" matches the Google brand regardless of capitalization, and "(oriole|raven|bluejay)" matches multiple product codenames.

For more information, refer to Device filter hardware profile settings.

Properties

Property Description
RequiredAndroidOsVersionThe required Android OS version for devices that match this profile.
RequiredDriverVersionThe required Vulkan driver version for devices that match this profile.
RequiredVulkanVersionThe required Vulkan API version for devices that match this profile.

Constructors

Constructor Description
ProfileDeviceFilterCreates a ProfileDeviceFilter that targets devices matching the specified criteria.

Public Methods

Method Description
DisableAllWorkaroundsDisables all defined driver workarounds for this profile.
SetGraphicsAPISets the graphics API to use on devices that match this profile.
SetGraphicsJobsFilterModeSets the graphics jobs filter mode for devices that match this profile.
SetWorkaroundSets the state of a specific driver workaround for this profile.

Inherited Members

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961