docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Edge

    Represents a data flow from an origin NodePort to a destination NodePort.

    Implements
    IEquatable<Edge>
    IOriginEdge
    IDestinationEdge
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Importer
    Assembly: Unity.Importer.dll
    Syntax
    [Serializable]
    public struct Edge : IEquatable<Edge>, IOriginEdge, IDestinationEdge
    Remarks

    A valid edge must abide to the following rules :

    • origin is an output field of a node in the graph
    • destination is an input field of another node in the graph
    • origin and destination field are of the same type
    • edge is unique
    • only one incoming edge per input

    Constructors

    Edge(INode<InputPorts, OutputPorts>, string, INode<InputPorts, OutputPorts>, string)

    Represents a data flow from an origin NodePort to a destination NodePort.

    Declaration
    public Edge(INode<InputPorts, OutputPorts> origin, string originFieldName, INode<InputPorts, OutputPorts> destination, string destinationFieldName)
    Parameters
    Type Name Description
    INode<InputPorts, OutputPorts> origin

    The Edge origin INode<TInput, TOutput>.

    string originFieldName

    The Edge origin output field on the origin INode<TInput, TOutput>.

    INode<InputPorts, OutputPorts> destination

    The Edge destination INode<TInput, TOutput>.

    string destinationFieldName

    The Edge destination input field on the destination INode<TInput, TOutput>.

    Properties

    Destination

    A NodePort representing the destination of the Edge.

    Declaration
    public NodePort Destination { get; }
    Property Value
    Type Description
    NodePort

    Origin

    A NodePort representing the origin of the Edge.

    Declaration
    public NodePort Origin { get; }
    Property Value
    Type Description
    NodePort

    Methods

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    ValueType.Equals(object)

    Equals(Edge)

    Declaration
    public bool Equals(Edge other)
    Parameters
    Type Name Description
    Edge other
    Returns
    Type Description
    bool

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ValueType.GetHashCode()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Implements

    IEquatable<T>
    IOriginEdge
    IDestinationEdge
    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)