Description | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Attribute in CodeFunctionNode

    Description

    Defines an argument to a method as a Port for a Node. The type of the Port is defined by the argument type.

    The SlotAttribute can also be used to apply a Port Binding to the Port or define its default value.

    Properties

    Property Type Description
    slotId int Index for the Port. Must be unique.
    binding Binding Defines the Port Binding. Set to None for no binding.
    hidden bool If true the Port will be hidden.
    defaultValue Vector4 Default value for the Port.
    In This Article
    • Description
    • Properties
    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