기술 자료

Unity Engine

Unity Engine

GetLoadedAssemblyPath(Assembly)

Returns location of the assembly.
읽는 시간 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()); }}