This version of Unity is unsupported.

SearchContext.SetFilter

Declaration

public void SetFilter(string providerId, bool isEnabled);

Parameters

providerId ID of the search provider. See SearchProvider.name.id.
isEnabled If true, enables the search provider to perform a query.

Description

Enables or disables a single search provider. A disabled search provider won't be asked to provide items to resolve the query.