Library/PackageCache/com.unity.quicksearch@1.6.0-preview.8/Editor/SearchService.cs
/// <summary>
/// Activate or deactivate a search provider.
/// Call Refresh after this to take effect on the next search.
/// </summary>
/// <param name="providerId">Provider id to activate or deactivate</param>
/// <param name="active">Activation state</param>
Activate or deactivate a search provider.
Call Refresh after this to take effect on the next search.
Activate or deactivate a search provider . Call Refresh after this to take effect on the next search .
public static void SetActive(string providerId, bool active = true)
        {
            var provider = Providers.FirstOrDefault(p => p.name.id == providerId);
            if (provider == null)
                return;
            SearchSettings.GetProviderSettings(providerId).active = active;
            provider.active = active;
        }
public static void SetActive ( string providerId , bool active = true ) { var provider = Providers . FirstOrDefault ( p => p . name . id == providerId ) ; if ( provider == null ) return ; SearchSettings . GetProviderSettings ( providerId ) . active = active ; provider . active = active ; }
Activate or deactivate a search provider.
Activate or deactivate a search provider .
providerId
string
Provider id to activate or deactivate
Provider id to activate or deactivate
active
bool
None