# LoadObject()

> Loads an object instance if it is not already loaded in Unity. This can return null if the object is part of a Scene or Prefab that is not loaded.

## Definition

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

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

```csharp
public Object LoadObject()
```

### Returns

| Type                                                            | Description          |
| --------------------------------------------------------------- | -------------------- |
| [Object](/engine/6000.7/script-reference/unityengine/object.md) | The object instance. |
