文档

Unity Engine

Unity Engine

NodeAttribute

Initializes a new instance of the NodeAttribute class.
阅读时间1 分钟最后更新于 1 个月前

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.