Class CompositorNodeAttribute
Classes which are decorated with this attribute will appear in the 'Create Node' menu in the Visual Compositor editor.
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. |