# AdvancedObjectSelectorValidatorAttribute(string)

> Registers a method to act as an advanced object selector validator.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEditor.SearchService](/engine/6000.7/script-reference/unityeditor/searchservice.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public AdvancedObjectSelectorValidatorAttribute(string id)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): A unique identifier for this advanced object selector validator.

### Remarks

A unique identifier is required when registering a custom advanced object selector validator. If the identifier is not unique, the advanced object selector validator is not registered and a warning is displayed in the console. The same identifier must be used by the attribute [AdvancedObjectSelectorAttribute](/engine/6000.7/script-reference/unityeditor/searchservice/advancedobjectselectorattribute.md) to properly register an advanced object selector.
