# ToolContextToolbarForTarget(GUIContent, Object)

> Makes a toolbar populated with the collection of EditorToolContext that match the targetType of the target object.

## Definition

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

```csharp
public static void ToolContextToolbarForTarget(GUIContent content, Object target)
```

### Parameters

**** (\[GUIContent]\(/engine/6000.0/script-reference/unityengine/guicontent)): An optional prefix label. Pass null to omit the label.**** (\[Object]\(/engine/6000.0/script-reference/unityengine/object)): The target object. This may be either a [Component](/engine/6000.0/script-reference/unityengine/component.md) or an [Editor](/engine/6000.0/script-reference/unityeditor/editor.md).
