Skip to content

Developer Tools

Eiquf edited this page Feb 14, 2026 · 1 revision

The [NodeID] Attribute

To avoid "Magic Strings" and typos, use the [NodeID] attribute. It generates a dropdown menu of all IDs found in a specific tree.

public class SkillManager : MonoBehaviour {
    [SerializeField] private NodeTree _tree;
    
    [SerializeField, NodeID(nameof(_tree))] 
    private string _startingSkill; 
}
***

Clone this wiki locally