A behavior tree library in .NET and Unity.
This package can be installed using NPM, directly from GitHub, or using a local clone of the repository.
Installing with NPM enables easier updates through the Unity Package Manager and is the recommended approach.
- Open the Project Settings window
- In the project settings window, open the Package Manager settings.
- In the package manager settings, add a new scoped registry
- For
Name
, useNPM Registry
- For
URL
, usehttps://registry.npmjs.org
- For
Scope(s)
, add at least one itemcom.asasine.behaviortree
- You can specify additional scopes for additional packages from the NPM Registry
- You can specify broader scopes to make additional package available. Adding a scope
com.example
will make all packages that begin withcom.example
available from this registry.
- Click
Apply
- For
- Open the Unity Package Manager window
- In the top bar, change the packages to
Packages: My Registries
- Select
BehaviorTree.NET
- In the bottom bar, click
Install
- Open the Unity Package Manager window
- In the top bar, change the packages to
Packages: In Project
- Select
BehaviorTree.NET
- In the bottom bar, click
Update to v0.2.0
Installing from a Git URL allows you to fully customize which version of the package you use. If you are forking the package repository and not releasing on NPM, or are developing smaller features and bug fixes, you may find this approach useful.
- Open the Unity Package Manager window
- In the top bar, click the
+
button - In the dropdown, select
Add package from git URL
from the add menu - In the text box, enter the GitHub URL of this package:
https://github.com/asasine/BehaviorTree.NET.git
- You may also specify releases using tags
- For example, targeting v0.2.0 would use the URL
https://github.com/asasine/BehaviorTree.NET.git#v0.2.0
- For example, targeting v0.2.0 would use the URL
- You can find all releases listed here
- More information on specifying git references is available in the Unity Manual
- You may also specify releases using tags
- In the text box, click
Add
Installing from disk lets you use a clone of the repo. This is useful if you are actively developing additional features for the package.
- Clone the repo to your file system
- Open the Unity Package Manager window
- In the top bar, click the
+
button - In the dropdown, select
Add package from disk
from the add menu - In the file explorer, navigate to the cloned repository and open the
package.json
file
Install the package into Unity as a local or git package by following the steps at https://docs.unity3d.com/Manual/upm-concepts.html#Sources.