---
title: ProjectInfo
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityeditor/compilation/projectinfo
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityeditor/compilation/projectinfo.md
last_updated: 2026-11-26
generated_at: 2026-11-26T04:23:24.407Z
locale: en-us
---

# ProjectInfo

> Describes a script project and the assembly it compiles to.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.Compilation](/engine/7000.0/script-reference/unityeditor/compilation.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public sealed class ProjectInfo
```

## Remarks

[CompilationPipeline.GetProjects](/engine/7000.0/script-reference/unityeditor/compilation/compilationpipeline/getprojects.md) returns these. When the MSBuild compilation pipeline is enabled, each one describes an MSBuild project as of the last script compilation.

Additional Resources: [CompilationPipeline.GetProjects](/engine/7000.0/script-reference/unityeditor/compilation/compilationpipeline/getprojects.md), [ProjectTarget](/engine/7000.0/script-reference/unityeditor/compilation/projecttarget.md).

## Properties

| Property                                                                                                                  | Description                                                                                                                                          |
| ------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| [defines](/engine/7000.0/script-reference/unityeditor/compilation/projectinfo/defines.md)                                 | The scripting defines the project compiles with.                                                                                                     |
| [isEditorOnly](/engine/7000.0/script-reference/unityeditor/compilation/projectinfo/iseditoronly.md)                       | Whether the project only compiles for the Editor.                                                                                                    |
| [name](/engine/7000.0/script-reference/unityeditor/compilation/projectinfo/name.md)                                       | The name of the assembly the project compiles to, without the file extension.                                                                        |
| [outputPath](/engine/7000.0/script-reference/unityeditor/compilation/projectinfo/outputpath.md)                           | The full path of the compiled assembly.                                                                                                              |
| [projectFilePath](/engine/7000.0/script-reference/unityeditor/compilation/projectinfo/projectfilepath.md)                 | The full path of the project file (.csproj).                                                                                                         |
| [referencedProjects](/engine/7000.0/script-reference/unityeditor/compilation/projectinfo/referencedprojects.md)           | The names of the other projects this project references.                                                                                             |
| [referencePaths](/engine/7000.0/script-reference/unityeditor/compilation/projectinfo/referencepaths.md)                   | The full paths of the precompiled assemblies the project compiles against.                                                                           |
| [sourceFileRelativePaths](/engine/7000.0/script-reference/unityeditor/compilation/projectinfo/sourcefilerelativepaths.md) | The source files the project compiles, as project-relative paths such as `Assets/MyScript.cs` or `Packages/com.example.package/Runtime/MyScript.cs`. |
