public sealed class ProjectPathsWhere the four top-level directories of a project are.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Assets/ and ProjectSettings/ are committed; Library/ and Build/ are not. That is Unity's split and it is right: everything under Library/ is reproducible from a source file plus its .meta, so committing it is pure churn and a permanent source of merge conflicts on binary blobs.
Paths are held as absolute and handed out as absolute; anything stored in a file — the GUID index, a reference — is project-relative with forward slashes, so the same Library/ works on a Mac and a Windows machine sharing a checkout.
Fields and properties (7)
public string RootThe project's root directory.
public string AssetsEverything that gets imported.
public string ProjectSettingsPer-project settings assets, committed.
public string LibraryThe local, disposable, machine-specific import cache.
public string BuildContent build output.
public string GuidIndexFileThe persisted GUID index.
public string OrphanMetaWhere a .meta whose asset has gone goes.
Methods (3)
public ProjectPaths(string root)Names a project's directories.
public string Relative(string absolute)Turns an absolute path into the project-relative, forward-slashed form things are stored as.
public string Absolute(string relative)Turns a project-relative path back into an absolute one.
Used by (81, showing 40)
- AddressableGroupsViewVixen.Editor.AssetEditors
- AnimationBinderVixen.Editor.AssetEditors
- AnimationWiringTestsVixen.Editor.App.Tests
- AssetDatabaseVixen.Editor.Core
- AssetDatabaseTestsVixen.Editor.Core.Tests
- AssetEditorRegistryVixen.Editor.AssetEditors
- AssetEditorRegistryTestsVixen.Editor.AssetEditors.Tests
- AssetFileTestsVixen.Editor.AssetEditors.Tests
- AssetOperationTestsVixen.Editor.Core.Tests
- AssetOperationsVixen.Editor.Core
- BehaviorSceneTestsVixen.Editor.SceneView.Tests
- BlockoutBooleanTestsVixen.Editor.Blockout.Tests
- BlockoutCreateTestsVixen.Editor.Blockout.Tests
- BlockoutGeometryTestsVixen.Editor.Blockout.Tests
- BlockoutHistoryTestsVixen.Editor.Blockout.Tests
- BlockoutSelectionTestsVixen.Editor.Blockout.Tests
- BlockoutSurfaceTestsVixen.Editor.Blockout.Tests
- CommandTestsVixen.Editor.NodeGraph.Tests
- CompiledSceneTestsVixen.Editor.AssetEditors.Tests
- ComponentGizmoTestsVixen.Editor.SceneView.Tests
- ContentPipelineVixen.Editor.Assets
- ContentPipelineTestsVixen.Editor.Assets.Tests
- ContentTasksVixen.Editor.App
- CreateMenuTestsVixen.Editor.App.Tests
- DoctorRunnerVixen.Cli
- EditMeshSceneTestsVixen.Editor.SceneView.Tests
- EditingTestsVixen.Editor.Inspector.Tests
- EditorApplicationVixen.Editor.App
- EditorContentVixen.Editor.App
- EditorContentTestsVixen.Editor.App.Tests
- EditorEffectsVixen.Editor.App
- EditorEffectsTestsVixen.Editor.App.Tests
- EditorFixtureVixen.Editor.AssetEditors.Tests
- EditorProjectVixen.Editor.Core
- EditorProjectTestsVixen.Editor.Core.Tests
- EditorSessionVixen.Editor.Testing
- EntityLifetimeTestsVixen.Editor.SceneView.Tests
- FontDocumentVixen.Editor.AssetEditors
- ImportPipelineVixen.Editor.Assets
- ImportPipelineTestsVixen.Editor.Assets.Tests