docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CollectionPathUtilities

    Inheritance
    object
    CollectionPathUtilities
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)