Add Unity Pipeline package support

This commit is contained in:
ud18010
2026-07-31 17:34:04 +08:00
parent d1a526094e
commit 786b7ffff9
590 changed files with 51995 additions and 2 deletions
@@ -0,0 +1,29 @@
using Unity.Pipeline.Commands;
using Unity.Pipeline.Editor.Authoring;
namespace Unity.Pipeline.Editor.Commands.Authoring
{
/// <summary>
/// Commands to inspect and configure the authoring root — the base folder (under Assets/) that
/// bare authoring paths resolve against and that authoring writes are confined to. Persisted
/// per project; the default is "Assets" (full Assets access).
/// </summary>
public static class AuthoringConfigCommands
{
[CliCommand("get_authoring_root", "Get the base folder (under Assets/) that bare authoring paths resolve against.")]
public static object GetAuthoringRoot()
{
return new { root = ProjectPaths.AuthoringRoot };
}
[CliCommand("set_authoring_root", "Set the base folder (under Assets/) that bare authoring paths resolve against and are confined to. Use 'Assets' for full project access.")]
public static object SetAuthoringRoot(
[CliArg("root", "Project-relative folder under Assets/, e.g. Assets/AgentWork. Use 'Assets' to allow the whole project.", Required = true)] string root)
{
// Throws ArgumentException for invalid roots (outside Assets/ or containing ".."); the
// server surfaces that message to the caller.
ProjectPaths.AuthoringRoot = root;
return new { root = ProjectPaths.AuthoringRoot };
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c4429604fb18e8347a2e2efdefc49663
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: