Class ManageAssetParams
Demonstrates typed parameter record for Unity.ManageAsset tool. This shows how to use record types with enums for clean, type-safe parameters.
Implements
Inherited Members
Namespace: Unity.AI.MCP.Editor.ToolRegistry.Parameters
Assembly: Unity.AI.MCP.Editor.dll
Syntax
public record ManageAssetParams : IEquatable<ManageAssetParams>
Properties
Action
Gets or sets the operation to perform (e.g., 'Import', 'Create', 'Modify', 'Delete', etc.).
Declaration
[McpDescription("Operation to perform (e.g., 'Import', 'Create', 'Modify', 'Delete', 'Duplicate', 'Move', 'Rename', 'Search', 'GetInfo', 'CreateFolder', 'GetComponents').", Required = true)]
public AssetAction Action { get; set; }
Property Value
| Type | Description |
|---|---|
| AssetAction |
AssetType
Gets or sets the type of asset to create or work with.
Declaration
[McpDescription("Type of asset to create or work with")]
public string AssetType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Destination
Gets or sets the destination path for move/copy operations.
Declaration
[McpDescription("Destination path for move/copy operations")]
public string Destination { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
FilterDate
Gets or sets the filter for assets modified after this date.
Declaration
[McpDescription("Filter assets modified after this date")]
public string FilterDate { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
FilterType
Gets or sets the filter by asset type.
Declaration
[McpDescription("Filter by asset type")]
public string FilterType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
GeneratePreview
Gets or sets whether to generate a preview when getting asset info.
Declaration
[McpDescription("Generate preview when getting asset info")]
public bool GeneratePreview { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
PageNumber
Gets or sets the page number (1-based) for search operations.
Declaration
[McpDescription("Page number (1-based)")]
public int PageNumber { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
PageSize
Gets or sets the number of results per page for search operations.
Declaration
[McpDescription("Number of results per page")]
public int PageSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Path
Gets or sets the asset path relative to project root.
Declaration
[McpDescription("Asset path relative to project root", Required = true)]
public string Path { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Properties
Gets or sets the properties to set on the asset.
Declaration
[McpDescription("Properties to set on the asset")]
public JObject Properties { get; set; }
Property Value
| Type | Description |
|---|---|
| JObject |
SearchPattern
Gets or sets the search pattern for finding assets.
Declaration
[McpDescription("Search pattern for finding assets")]
public string SearchPattern { get; set; }
Property Value
| Type | Description |
|---|---|
| string |