Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NodeAttribute

Initializes a new instance of the NodeAttribute class.
Read time 1 minuteLast updated 5 days ago

Definition

NodeAttribute(string)

Initializes a new instance of the NodeAttribute class.
public NodeAttribute(string categoryPath)

Parameters

categoryPath

The category path of the node in the graph item library.

NodeAttribute(string, string)

Initializes a new instance of the NodeAttribute class.
public NodeAttribute(string categoryPath, string iconPath)

Parameters

categoryPath

The category path of the node in the graph item library.

iconPath

The file path to the node's icon.

NodeAttribute(string, string, string)

Initializes a new instance of the NodeAttribute class.
public NodeAttribute(string categoryPath, string iconPath, string title)

Parameters

categoryPath

The category path of the node in the graph item library.

iconPath

The file path to the node's icon.

title

The title of the node in the graph item library. It is also used as the title of this node when it is instantiated in a graph.

NodeAttribute(string, string, string, string)

Initializes a new instance of the NodeAttribute class.
public NodeAttribute(string categoryPath, string iconPath, string title, string stylesheet)

Parameters

categoryPath

The category path of the node in the graph item library.

iconPath

The file path to the node's icon.

title

The title of the node in the graph item library. It is also used as the title of this node when it is instantiated in a graph.

stylesheet

Path to a stylesheet (.uss) used to customize the node's VisualElement appearance.