Skip to main content

Class CommentNode

A visual comment node used to add annotations or notes within the node graph. Allows adjustable size and color for better visual organization.

public class CommentNode : BaseNode

Inheritance​

Remarks​

The node's name field is used as the comment text.

Fields​

color​

Background color of the comment node.

public Color color

Field Value​

Color

comment​

The text content of the comment displayed in the comment node's header.

public string comment

Field Value​

string

height​

Adjustable height of the comment node.

public int height

Field Value​

int

shouldOpenCommentEdit​

Indicates whether the comment edit window should be opened.

[NonSerialized]
public bool shouldOpenCommentEdit

Field Value​

bool

width​

Adjustable width of the comment node.

public int width

Field Value​

int

Methods​

EnableCommentEdit()​

Enables edit mode for the comment. Called via the context menu in the editor.

[ContextMenu("Edit Comment")]
public void EnableCommentEdit()