# SetActiveObjectWithContext(Object, Object)

> Selects an object with a context.

## Definition

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

```csharp
public static void SetActiveObjectWithContext(Object obj, Object context)
```

### Parameters

**** (\[Object]\(/engine/6000.7/script-reference/unityengine/object)): Object being selected (will be equal activeObject).**** (\[Object]\(/engine/6000.7/script-reference/unityengine/object)): Context object.
