docs.unity3d.com
    Show / Hide Table of Contents

    Get Custom Attribute

    Menu Path : Operator > Attribute > Get Custom Attribute

    The Get Custom Attribute Operator returns the value of a named custom Attribute of a given type depending on its location.

    Operator settings

    Setting Type Description
    Attribute string (Inspector) The name of the custom attribute. This is case sensitive.
    Location Location Enum The location of the attribute
    Attribute Type Enum (Attribute-compatible base types) (Inspector) The type to use for the attribute.

    Operator properties

    Output Type Description
    CustomAttribute Dependent The value of the custom attribute (based on its Location). If the attribute has not yet been written to, this is the default value for the output's type.
    The type of this output matches the type you specify in Attribute Type.

    Details

    If the custom attribute this Operator reads from has not yet been written to, the output value is the default value for the output's type.

    In This Article
    • Operator settings
    • Operator properties
    • Details
    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