Class CollectionPathUtilities
Inherited Members
Namespace: Unity.Cloud.Assets
Assembly: Unity.Cloud.Assets.dll
Syntax
public static class CollectionPathUtilities
Methods
GetLastComponentOfPath(CollectionPath)
Returns the last component of the path.
Declaration
public static string GetLastComponentOfPath(this CollectionPath path)
Parameters
| Type | Name | Description |
|---|---|---|
| CollectionPath | path | The path to query. |
Returns
| Type | Description |
|---|---|
| string | The . |
GetParentPath(CollectionPath, int)
Trims the path back to the specified parent.
Declaration
public static CollectionPath GetParentPath(this CollectionPath path, int trimCount = 1)
Parameters
| Type | Name | Description |
|---|---|---|
| CollectionPath | path | The path to query. |
| int | trimCount | The number of components to trim from the path. |
Returns
| Type | Description |
|---|---|
| CollectionPath | A path to a parent. |