Version: Unity 6.4 Alpha (6000.4)
LanguageEnglish
  • C#

AssemblyExtension

class in UnityEngine

/

Implemented in:UnityEngine.CoreModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Extends the Assembly class with additional methods.

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

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.