Documentation

Unity Engine

Download Unity

Unity Engine

ProjectInfo

Describes a script project and the assembly it compiles to.
Read time 1 minuteLast updated an hour ago

Definition

public sealed class ProjectInfo

Remarks

CompilationPipeline.GetProjects returns these. When the MSBuild compilation pipeline is enabled, each one describes an MSBuild project as of the last script compilation.

Properties

Property

Description

definesThe scripting defines the project compiles with.
isEditorOnlyWhether the project only compiles for the Editor.
nameThe name of the assembly the project compiles to, without the file extension.
outputPathThe full path of the compiled assembly.
projectFilePathThe full path of the project file (.csproj).
referencedProjectsThe names of the other projects this project references.
referencePathsThe full paths of the precompiled assemblies the project compiles against.
sourceFileRelativePathsThe source files the project compiles, as project-relative paths such as
Assets/MyScript.cs
or
Packages/com.example.package/Runtime/MyScript.cs
.