GetLoadedAssemblyPath(Assembly)
Returns location of the assembly.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static string GetLoadedAssemblyPath(this Assembly assembly)
Parameters
The assembly to look up the location of. Throws ArgumentNullException if null.
Returns
Type | Description |
|---|---|
| string | The path to the assembly. Null if path is not known. |
Examples
using UnityEditor;using UnityEngine;public static class AssemblyInfoExtractor{ [MenuItem("Test/Log Assembly Path")] static void LogAssemblyPath() { Debug.Log(typeof(AssemblyInfoExtractor).Assembly.GetLoadedAssemblyPath()); }}