docs.unity3d.com
    Show / Hide Table of Contents

    Class CompositorNodeAttribute

    Classes which are decorated with this attribute will appear in the 'Create Node' menu in the Visual Compositor editor.

    Inheritance
    Object
    Attribute
    CompositorNodeAttribute
    Namespace: Unity.VisualCompositor
    Syntax
    [AttributeUsage(AttributeTargets.Class)]
    public class CompositorNodeAttribute : Attribute, _Attribute

    Constructors

    CompositorNodeAttribute(String, String, Int32, Boolean, String)

    Constructs an attribute which allows the usage of the decorated class in Visual Compositor.

    Declaration
    public CompositorNodeAttribute(string title, string tooltip, int w = 384, bool userCreatable = true, string icon = "")
    Parameters
    Type Name Description
    String title

    The path/name used in the 'Create Node' menu.

    String tooltip

    The text that appears when hovering over the node in the editor.

    Int32 w

    The width of the node widget in the editor.

    Boolean userCreatable

    if false, the node will not appear in the 'Create Node' menu.

    String icon

    An optional path to icon used in the widget header.

    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