# ObjectSelectorTargetInfo(GlobalObjectId, Object, Type)

> Creates an ObjectSelectorTargetInfo.

## Definition

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

> **Warning:**
>
> **Removed.** ObjectSelectorTargetInfo has been deprecated.

```csharp
public ObjectSelectorTargetInfo(GlobalObjectId globalObjectId, Object targetObject = null, Type type = null)
```

### Parameters

**** (\[GlobalObjectId]\(/engine/6000.7/script-reference/unityeditor/globalobjectid)): The object's global identifier.**** (\[Object]\(/engine/6000.7/script-reference/unityengine/object)): The object's instance. It can be null if the object is not loaded.**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): The object's underlying type. It can be null if the object is not loaded.

### Remarks

This structure is used to pass an object's information to an [ObjectSelectorHandlerAttribute](/engine/6000.7/script-reference/unityeditor/searchservice/objectselectorhandlerattribute.md) without loading the object if it is not needed.
