# GetSourceName(Component)

> Returns the component specific name to be used in the apply menu item.

## Definition

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

```csharp
string GetSourceName(Component comp)
```

### Parameters

**** (\[Component]\(/engine/6000.3/script-reference/unityengine/component)): The component of interest.

### Returns

| Type                                                           | Description                   |
| -------------------------------------------------------------- | ----------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | A string containing the name. |

### Remarks

The component specific name is shown in the apply menu item texts to describe the object specific name of the target of the operation: the apply item text is defined as "Apply override to '\{SourceName}' \{SourceTerm}".
