اقرأ باللغة الإنجليزية تحرير

مشاركة عبر


AssemblyDefinitionInfo Class

Definition

This class represents an AssemblyDefinition file of a Unity project. It can be used to parse the file contents using JsonUtility.FromJson.

C++
public ref class AssemblyDefinitionInfo
Inheritance
AssemblyDefinitionInfo

Constructors

Fields

Properties

BuiltInPackage

Gets whether this represents a built-in package that lives in Editor installation folder.

Directory

Gets the parent directory of the associated file, or returns the Assets folder if it's a DefaultAssembly.

EditorPlatformSupported

Gets whether the Editor platform is specified to be supported.

Guid

Gets or sets the parsed Guid of the AssemblyDefinition asset.

IsDefaultAssembly

Gets whether this is a default assembly definition like Assembly-CSharp

Name

Name of this assembly definition info

NonEditorPlatformSupported

Gets whether any non-Editor platforms are specified to be supported.

PrecompiledAssemblyReferences

Gets DLL references for this assembly definition.

References

Gets AsmDef references for this assembly definition.

TestAssembly

Gets whether this is marked as a TestAssembly.

Methods

GetDefaultAssemblyCSharpInfo(Assembly)

Creates an instance of AssemblyDefinitionInfo for the default projects (such as Assembly-CSharp)

GetSources()

Gets the source files for this assembly definition.

Parse(FileInfo, UnityProjectInfo, Assembly, Boolean)

Parses an asmdef file creating a new instance of AssemblyDefinitionInfo.

ToString()

A more readable string representation for assembly definition.

Validate(IEnumerable<CompilationPlatformInfo>)

After it's parsed from JSON, this method should be invoked to validate some of the values and set additional properties.

Applies to

منتج الإصدارات
MRTK2 Unity 2018 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0