# GetAssemblyNameFromScriptPath(string)

> Returns the assembly name for a source (script) path. Returns null if there is no assembly name for the given script path.

## Definition

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

```csharp
public static string GetAssemblyNameFromScriptPath(string sourceFilePath)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Source (script) path.

### Returns

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