Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Node(InfoAttribute, T)

Constructor of the node element with the given attribute.
Read time 1 minuteLast updated 5 days ago

Definition

public Node(InfoAttribute info, T data = default)

Parameters

Either ElementInfoAttribute for leaf nodes or CategoryInfoAttribute for category nodes.

data

T
The data holding the element. Category nodes have null data as they only have chldren.