Class QueryEditorAttribute
Tells the SemanticQuery editor how to display a Filter or a Scorer container
Namespace: Unity.Semantic.Traits.Queries
Syntax
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.Delegate | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter | AttributeTargets.All)]
public sealed class QueryEditorAttribute : Attribute, _Attribute
Constructors
QueryEditorAttribute(String, String, Type)
Defines a query filter editor
Declaration
public QueryEditorAttribute(string name, string descriptionFormat, Type requiredTraitData = null)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | Name of the filter |
| String | descriptionFormat | Format the filter and its parameters |
| Type | requiredTraitData | Optional trait requirement |