docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GenerateUniqueNodeName

    GenerateUniqueNodeName(SerializedNode, List<SerializedNode>, out bool, string)

    Generate a unique name for node, if name is not unique in the graph

    Declaration
    public static string GenerateUniqueNodeName(SerializedNode p, List<SerializedNode> lstNode, out bool modified, string jsonNameKey = "_displayName")
    Parameters
    Type Name Description
    SerializedNode p

    The node to generate a unique name for

    List<SerializedNode> lstNode

    The list of nodes in the graph

    bool modified

    Is set to true when the name has been modified

    string jsonNameKey

    The name of the json field that contains the name, if upgrading, it's possible this field is not the same between versions

    Returns
    Type Description
    string

    Returns a unique name for node p

    In This Article
    Back to top
    Copyright © 2024 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)