NodeContentAttribute

Type description and basic instructions.

Description

To create custom nodes in editor you should add Node Content attribute to your custom node class.

This attribute has some parameters that you should specify.

Parameters

NameDescription

name

Default node name that is displayed after you create this node in the editor

path

Path that you should follow to find this node when you open "Create Node" menu in the editor

IconPath

Path that you should follow to find your node icon.

Example

[NodeContent(name:"Example", path:"Tasks/Example/Example", IconPath = "Images/Icons/Node/Example.png")]
public class ExampleTaskNode : TaskNode
{
    ...
}

IconPath is relative to "Assets/RenownedGames/ai-tree/Core/Editor/EditorResources"

Last updated