ドキュメント

Unity Engine

Unity Engine

AssemblyExtension

Extends the Assembly class with additional methods.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.