docs.unity3d.com
    Show / Hide Table of Contents

    Class OutputPortAttribute

    The attributes for node output ports.

    Inheritance
    Object
    Attribute
    OutputPortAttribute
    Namespace: Unity.VisualCompositor
    Syntax
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
    public class OutputPortAttribute : Attribute, _Attribute, IHasOrder, IHasName

    Constructors

    OutputPortAttribute(Int32, String, Boolean)

    Add an output port to a node.

    Declaration
    public OutputPortAttribute(int order = 0, string name = null, bool showOutputPreview = true)
    Parameters
    Type Name Description
    Int32 order

    The order of the port

    String name

    The name of the port

    Boolean showOutputPreview

    Should the output of this port be visualised?

    Methods

    GetName()

    Returns the name of the object

    Declaration
    public string GetName()
    Returns
    Type Description
    String

    The name as string

    Implements
    IHasName.GetName()

    GetOrder()

    Gets the order

    Declaration
    public int GetOrder()
    Returns
    Type Description
    Int32

    The order

    Implements
    IHasOrder.GetOrder()

    ShowOutputPreview()

    Declaration
    public bool ShowOutputPreview()
    Returns
    Type Description
    Boolean
    Back to top
    Terms of use
    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