Class ConnectionData | Asset Graph | 1.6.0-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class ConnectionData

    Connection data.

    Inheritance
    Object
    ConnectionData
    Namespace: UnityEngine.AssetGraph.DataModel.Version2
    Syntax
    [Serializable]
    public class ConnectionData

    Constructors

    ConnectionData(ConnectionData)

    Declaration
    public ConnectionData(ConnectionData v1)
    Parameters
    Type Name Description
    ConnectionData v1

    ConnectionData(String, ConnectionPointData, ConnectionPointData)

    Declaration
    public ConnectionData(string label, ConnectionPointData output, ConnectionPointData input)
    Parameters
    Type Name Description
    String label
    ConnectionPointData output
    ConnectionPointData input

    Properties

    FromNodeConnectionPointId

    Gets from node connection point identifier.

    Declaration
    public string FromNodeConnectionPointId { get; }
    Property Value
    Type Description
    String

    From node connection point identifier.

    FromNodeId

    Gets from node identifier.

    Declaration
    public string FromNodeId { get; }
    Property Value
    Type Description
    String

    From node identifier.

    Id

    Gets the identifier.

    Declaration
    public string Id { get; }
    Property Value
    Type Description
    String

    The identifier.

    Label

    Gets or sets the label.

    Declaration
    public string Label { get; set; }
    Property Value
    Type Description
    String

    The label.

    ToNodeConnectionPointId

    Gets to node connection point identifier.

    Declaration
    public string ToNodeConnectionPointId { get; }
    Property Value
    Type Description
    String

    To node connection point identifier.

    ToNodeId

    Gets to node identifier.

    Declaration
    public string ToNodeId { get; }
    Property Value
    Type Description
    String

    To node identifier.

    Methods

    CanConnect(NodeData, NodeData)

    Determines if can connect the specified from to.

    Declaration
    public static bool CanConnect(NodeData from, NodeData to)
    Parameters
    Type Name Description
    NodeData from

    From.

    NodeData to

    To.

    Returns
    Type Description
    Boolean

    true if can connect the specified from to; otherwise, false.

    Duplicate(Boolean)

    Declaration
    public ConnectionData Duplicate(bool keepGuid = false)
    Parameters
    Type Name Description
    Boolean keepGuid
    Returns
    Type Description
    ConnectionData

    Validate(List<NodeData>, List<ConnectionData>)

    Declaration
    public bool Validate(List<NodeData> allNodes, List<ConnectionData> allConnections)
    Parameters
    Type Name Description
    List<NodeData> allNodes
    List<ConnectionData> allConnections
    Returns
    Type Description
    Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023