# QueryEngineFilterAttribute

> Base attribute class used to define a custom filter on a QueryEngine. All filter types supported by QueryEngine.AddFilter are supported by this attribute.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.Search](/engine/6000.6/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor
* **Inherits from:** [Attribute](https://learn.microsoft.com/dotnet/api/system.attribute)

```csharp
[AttributeUsage(AttributeTargets.Method)]
public class QueryEngineFilterAttribute : Attribute
```

## Remarks

For a usage example, see QueryEngine.AddFiltersFromAttribute.

## Fields

| Value                                                                                                                                   | Description                                                                                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [comparisonOptions](/engine/6000.6/script-reference/unityeditor/search/queryenginefilterattribute/comparisonoptions.md)                 | String comparison options.                                                                                                                                      |
| [overridesStringComparison](/engine/6000.6/script-reference/unityeditor/search/queryenginefilterattribute/overridesstringcomparison.md) | Flag indicating if the filter overrides the global string comparison options. Set to true when the comparisonOptions are used.                                  |
| [paramTransformerFunction](/engine/6000.6/script-reference/unityeditor/search/queryenginefilterattribute/paramtransformerfunction.md)   | Name of the parameter transformer function to use with this filter. Tag the parameter transformer function with the appropriate ParameterTransformer attribute. |
| [supportedOperators](/engine/6000.6/script-reference/unityeditor/search/queryenginefilterattribute/supportedoperators.md)               | List of supported operator tokens. Null for all operators.                                                                                                      |
| [token](/engine/6000.6/script-reference/unityeditor/search/queryenginefilterattribute/token.md)                                         | The identifier of the filter. Typically what precedes the operator in a filter (i.e. "id" in "id>=2").                                                          |
| [useParamTransformer](/engine/6000.6/script-reference/unityeditor/search/queryenginefilterattribute/useparamtransformer.md)             | Flag indicating if this filter uses a parameter transformer function. Set to true when paramTransformerFunction is used.                                        |
| [useRegularExpressionToken](/engine/6000.6/script-reference/unityeditor/search/queryenginefilterattribute/useregularexpressiontoken.md) | Indicates if the filter uses a regular expression token or not.                                                                                                 |

## Constructors

| Constructor                                                                                                                                                                                                                                                                        | Description                                                           |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| [QueryEngineFilterAttribute(System.String,System.Boolean,System.String,System.String\[\])](/engine/6000.6/script-reference/unityeditor/search/queryenginefilterattribute/ctor.md#queryenginefilterattribute\(string-bool-string-string\))                                          | Create a filter with the corresponding token and supported operators. |
| [QueryEngineFilterAttribute(System.String,System.Boolean,System.String,System.StringComparison,System.String\[\])](/engine/6000.6/script-reference/unityeditor/search/queryenginefilterattribute/ctor.md#queryenginefilterattribute\(string-bool-string-stringcomparison-string\)) | Create a filter with the corresponding token and supported operators. |
| [QueryEngineFilterAttribute(System.String,System.Boolean,System.String\[\])](/engine/6000.6/script-reference/unityeditor/search/queryenginefilterattribute/ctor.md#queryenginefilterattribute\(string-bool-string\))                                                               | Create a filter with the corresponding token and supported operators. |
| [QueryEngineFilterAttribute(System.String,System.Boolean,System.StringComparison,System.String\[\])](/engine/6000.6/script-reference/unityeditor/search/queryenginefilterattribute/ctor.md#queryenginefilterattribute\(string-bool-stringcomparison-string\))                      | Create a filter with the corresponding token and supported operators. |
| [QueryEngineFilterAttribute(System.String,System.String,System.String\[\])](/engine/6000.6/script-reference/unityeditor/search/queryenginefilterattribute/ctor.md#queryenginefilterattribute\(string-string-string\))                                                              | Create a filter with the corresponding token and supported operators. |
| [QueryEngineFilterAttribute(System.String,System.String,System.StringComparison,System.String\[\])](/engine/6000.6/script-reference/unityeditor/search/queryenginefilterattribute/ctor.md#queryenginefilterattribute\(string-string-stringcomparison-string\))                     | Create a filter with the corresponding token and supported operators. |
| [QueryEngineFilterAttribute(System.String,System.String\[\])](/engine/6000.6/script-reference/unityeditor/search/queryenginefilterattribute/ctor.md#queryenginefilterattribute\(string-string\))                                                                                   | Create a filter with the corresponding token and supported operators. |
| [QueryEngineFilterAttribute(System.String,System.StringComparison,System.String\[\])](/engine/6000.6/script-reference/unityeditor/search/queryenginefilterattribute/ctor.md#queryenginefilterattribute\(string-stringcomparison-string\))                                          | Create a filter with the corresponding token and supported operators. |

## Inheritance

**Inherited Members:**

* [Attribute.GetCustomAttributes(MemberInfo, Type)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattributes#system-attribute-getcustomattributes\(system-reflection-memberinfo-system-type\))
* [Attribute.GetCustomAttributes(MemberInfo, Type, bool)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattributes#system-attribute-getcustomattributes\(system-reflection-memberinfo-system-type-system-boolean\))
* [Attribute.GetCustomAttributes(MemberInfo)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattributes#system-attribute-getcustomattributes\(system-reflection-memberinfo\))
* [Attribute.GetCustomAttributes(MemberInfo, bool)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattributes#system-attribute-getcustomattributes\(system-reflection-memberinfo-system-boolean\))
* [Attribute.IsDefined(MemberInfo, Type)](https://learn.microsoft.com/dotnet/api/system.attribute.isdefined#system-attribute-isdefined\(system-reflection-memberinfo-system-type\))
* [Attribute.IsDefined(MemberInfo, Type, bool)](https://learn.microsoft.com/dotnet/api/system.attribute.isdefined#system-attribute-isdefined\(system-reflection-memberinfo-system-type-system-boolean\))
* [Attribute.GetCustomAttribute(MemberInfo, Type)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattribute#system-attribute-getcustomattribute\(system-reflection-memberinfo-system-type\))
* [Attribute.GetCustomAttribute(MemberInfo, Type, bool)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattribute#system-attribute-getcustomattribute\(system-reflection-memberinfo-system-type-system-boolean\))
* [Attribute.GetCustomAttributes(ParameterInfo)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattributes#system-attribute-getcustomattributes\(system-reflection-parameterinfo\))
* [Attribute.GetCustomAttributes(ParameterInfo, Type)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattributes#system-attribute-getcustomattributes\(system-reflection-parameterinfo-system-type\))
* [Attribute.GetCustomAttributes(ParameterInfo, Type, bool)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattributes#system-attribute-getcustomattributes\(system-reflection-parameterinfo-system-type-system-boolean\))
* [Attribute.GetCustomAttributes(ParameterInfo, bool)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattributes#system-attribute-getcustomattributes\(system-reflection-parameterinfo-system-boolean\))
* [Attribute.IsDefined(ParameterInfo, Type)](https://learn.microsoft.com/dotnet/api/system.attribute.isdefined#system-attribute-isdefined\(system-reflection-parameterinfo-system-type\))
* [Attribute.IsDefined(ParameterInfo, Type, bool)](https://learn.microsoft.com/dotnet/api/system.attribute.isdefined#system-attribute-isdefined\(system-reflection-parameterinfo-system-type-system-boolean\))
* [Attribute.GetCustomAttribute(ParameterInfo, Type)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattribute#system-attribute-getcustomattribute\(system-reflection-parameterinfo-system-type\))
* [Attribute.GetCustomAttribute(ParameterInfo, Type, bool)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattribute#system-attribute-getcustomattribute\(system-reflection-parameterinfo-system-type-system-boolean\))
* [Attribute.GetCustomAttributes(Module, Type)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattributes#system-attribute-getcustomattributes\(system-reflection-module-system-type\))
* [Attribute.GetCustomAttributes(Module)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattributes#system-attribute-getcustomattributes\(system-reflection-module\))
* [Attribute.GetCustomAttributes(Module, bool)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattributes#system-attribute-getcustomattributes\(system-reflection-module-system-boolean\))
* [Attribute.GetCustomAttributes(Module, Type, bool)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattributes#system-attribute-getcustomattributes\(system-reflection-module-system-type-system-boolean\))
* [Attribute.IsDefined(Module, Type)](https://learn.microsoft.com/dotnet/api/system.attribute.isdefined#system-attribute-isdefined\(system-reflection-module-system-type\))
* [Attribute.IsDefined(Module, Type, bool)](https://learn.microsoft.com/dotnet/api/system.attribute.isdefined#system-attribute-isdefined\(system-reflection-module-system-type-system-boolean\))
* [Attribute.GetCustomAttribute(Module, Type)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattribute#system-attribute-getcustomattribute\(system-reflection-module-system-type\))
* [Attribute.GetCustomAttribute(Module, Type, bool)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattribute#system-attribute-getcustomattribute\(system-reflection-module-system-type-system-boolean\))
* [Attribute.GetCustomAttributes(Assembly, Type)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattributes#system-attribute-getcustomattributes\(system-reflection-assembly-system-type\))
* [Attribute.GetCustomAttributes(Assembly, Type, bool)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattributes#system-attribute-getcustomattributes\(system-reflection-assembly-system-type-system-boolean\))
* [Attribute.GetCustomAttributes(Assembly)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattributes#system-attribute-getcustomattributes\(system-reflection-assembly\))
* [Attribute.GetCustomAttributes(Assembly, bool)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattributes#system-attribute-getcustomattributes\(system-reflection-assembly-system-boolean\))
* [Attribute.IsDefined(Assembly, Type)](https://learn.microsoft.com/dotnet/api/system.attribute.isdefined#system-attribute-isdefined\(system-reflection-assembly-system-type\))
* [Attribute.IsDefined(Assembly, Type, bool)](https://learn.microsoft.com/dotnet/api/system.attribute.isdefined#system-attribute-isdefined\(system-reflection-assembly-system-type-system-boolean\))
* [Attribute.GetCustomAttribute(Assembly, Type)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattribute#system-attribute-getcustomattribute\(system-reflection-assembly-system-type\))
* [Attribute.GetCustomAttribute(Assembly, Type, bool)](https://learn.microsoft.com/dotnet/api/system.attribute.getcustomattribute#system-attribute-getcustomattribute\(system-reflection-assembly-system-type-system-boolean\))
* [Attribute.Equals(Object)](https://learn.microsoft.com/dotnet/api/system.attribute.equals)
* [Attribute.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.attribute.gethashcode)
* [Attribute.Match(Object)](https://learn.microsoft.com/dotnet/api/system.attribute.match)
* [Attribute.IsDefaultAttribute()](https://learn.microsoft.com/dotnet/api/system.attribute.isdefaultattribute)
* [Attribute.TypeId()](https://learn.microsoft.com/dotnet/api/system.attribute.typeid)
