Version: Unity 6.7 Alpha (6000.7)
Language : English
Introduction to WebGPU Device Filter asset
Configure WebGPU API usage

Create a WebGPU Device Filter asset

Create a WebGPU Device Filter asset to control exactly which browsers and devices can run your Unity application using the WebGPU API.

To create a WebGPU Device Filter asset:

  1. In your Unity project, navigate to the main menu.
  2. Select Assets > Create > Rendering > Device Filters > WebGPU Device Filter.

Unity creates the WebGPU Device Filter asset in the Assets folder with the file extension .webgpudevicefilter.

Each asset displays two filter lists in the Inspector window:

  • Allow Filters
  • Deny Filters

Unity pre-populates a new Device Filter asset with recommended defaults that enable WebGPU only on browser engines with mature WebGPU support. All other browsers fall back to WebGL2, as long as WebGL2 is in the project’s Graphics API list. Otherwise those browsers have no supported graphics API and the application fails to launch on them. For details of these default rules, refer to Default device filtering. You can edit or remove the defaults in the Device Filter asset.

To apply the asset, assign it to WebGPU Device Filter in the Player settings (menu: Edit > Project SettingsA broad collection of settings which allow you to configure how Physics, Audio, Networking, Graphics, Input and many other areas of your project behave. More info
See in Glossary
> Player > Other Settings).

Refer to Configure WebGPU API usage for instructions on how to set up these lists.

Additional resources

Introduction to WebGPU Device Filter asset
Configure WebGPU API usage