Class CompositorNodeAttribute
Classes which are decorated with this attribute will appear in the 'Create Node' menu in the Visual Compositor editor.
Inherited Members
Namespace: Unity.VisualCompositor
Assembly: Unity.VisualCompositor.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
public class CompositorNodeAttribute : Attribute
Constructors
CompositorNodeAttribute(string, string, int, bool, 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. |
int | w | The width of the node widget in the editor. |
bool | 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. |