Library/PackageCache/com.unity.quicksearch@1.6.0-preview.8/Editor/SearchContext.cs
/// <summary>
/// Enable or disable a single provider.
/// A disabled provider won't be ask to provider items to resolve the query.
/// </summary>
/// <param name="providerId">Id of the provider. See SearchProvider.<see cref="SearchProvider.name"/>.id.</param>
/// <param name="isEnabled">If true, enable the provider to perform query.</param>
Enable or disable a single provider.
A disabled provider won't be ask to provider items to resolve the query.
Enable or disable a single provider . A disabled provider won ' t be ask to provider items to resolve the query .
public void SetFilter(string providerId, bool isEnabled)
        {
            var index = m_ProviderDescs.FindIndex(t => t.provider.name.id == providerId);
            if (index != -1)
            {
                m_ProviderDescs[index].isEnabled = isEnabled;
            }
        }
public void SetFilter ( string providerId , bool isEnabled ) { var index = m_ProviderDescs . FindIndex ( t => t . provider . name . id == providerId ) ; if ( index != - 1 ) { m_ProviderDescs [ index ] . isEnabled = isEnabled ; } }
Enable or disable a single provider.
Enable or disable a single provider .
providerId
string
Id of the provider. See SearchProvider..id.
Id of the provider . See SearchProvider .. id .
isEnabled
bool
If true, enable the provider to perform query.
If true enable the provider to perform query .