Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AssemblyExtension

Extends the Assembly class with additional methods.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Class
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static class AssemblyExtension

Remarks

AssemblyExtension
is a utility class that provides additional functionality for the Assembly class. Access the methods of this class via the
Assembly
class rather than via
AssemblyExtension
directly. For example, to use AssemblyExtension.GetLoadedAssemblyPath, call:
Assembly.GetLoadedAssemblyPath
.
Additional Resources: Assembly

Examples

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

Static Methods

Method

Description

GetLoadedAssemblyPathReturns location of the assembly.