# EditorToolbarForTarget

> Makes a toolbar populated with the collection of editor tools that match the EditorToolAttribute of the target object.

## Definition

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

## EditorToolbarForTarget(Object)

Makes a toolbar populated with the collection of editor tools that match the EditorToolAttribute of the target object.

```csharp
public static void EditorToolbarForTarget(Object target)
```

### Parameters

**** (\[Object]\(/engine/6000.3/script-reference/unityengine/object)): The target object.

## EditorToolbarForTarget(GUIContent, Object)

Makes a toolbar populated with the collection of editor tools that match the EditorToolAttribute of the target object.

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

### Parameters

**** (\[GUIContent]\(/engine/6000.3/script-reference/unityengine/guicontent)): An optional prefix label.**** (\[Object]\(/engine/6000.3/script-reference/unityengine/object)): The target object.
