Parameter | Description |
---|---|
assembly | The assembly to look up the location of. Throws ArgumentNullException if null. |
string The path to the assembly. Null if path is not known.
Returns location of the assembly.
using UnityEditor; using UnityEngine;
public static class AssemblyInfoExtractor { [MenuItem("Test/Log Assembly Path")] static void LogAssemblyPath() { Debug.Log(typeof(AssemblyInfoExtractor).Assembly.GetLoadedAssemblyPath()); } }