ドキュメント

Unity Engine

Unity Engine

GetLoadedAssemblyPath(Assembly)

Returns location of the assembly.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static string GetLoadedAssemblyPath(this Assembly assembly)

Parameters

assembly

The assembly to look up the location of. Throws ArgumentNullException if null.

Returns

Type

Description

stringThe 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()); }}