AddBehaviourMenu

Attribute that can specify the path in the add behaviour menu.

Example

Script

Create a script named TestAddBehaviourMenu and write the following code.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Arbor;

[AddBehaviourMenu("ManualExample/TestAddBehaviourMenu")]
[AddComponentMenu("")]
public class TestAddBehaviourMenu : StateBehaviour
{
}

Operation check

Click “Add Behavior” of the state and check it in the add behaviour menu window.