# GetLoadedAssemblyPath(Assembly)

> Returns location of the assembly.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static string GetLoadedAssemblyPath(this Assembly assembly)
```

### Parameters

**** (\[Assembly]\(https\://learn.microsoft.com/dotnet/api/system.reflection.assembly)): The assembly to look up the location of. Throws ArgumentNullException if null.

### Returns

| Type                                                           | Description                                          |
| -------------------------------------------------------------- | ---------------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The path to the assembly. Null if path is not known. |

### Examples

```csharp
using UnityEditor;
using UnityEngine;

public static class AssemblyInfoExtractor
{
    [MenuItem("Test/Log Assembly Path")]
    static void LogAssemblyPath()
    {
        Debug.Log(typeof(AssemblyInfoExtractor).Assembly.GetLoadedAssemblyPath());
    }
}
```
