Skip to content

asasine/BehaviorTree.NET

Repository files navigation

BehaviorTree.NET

A behavior tree library in .NET and Unity.

Installation

This package can be installed using NPM, directly from GitHub, or using a local clone of the repository.

Install from NPM

Installing with NPM enables easier updates through the Unity Package Manager and is the recommended approach.

Add a scoped registry

  1. Open the Project Settings window
  2. In the project settings window, open the Package Manager settings.
  3. In the package manager settings, add a new scoped registry
    • For Name, use NPM Registry
    • For URL, use https://registry.npmjs.org
    • For Scope(s), add at least one item com.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 with com.example available from this registry.
    • Click Apply

Install the package

  1. Open the Unity Package Manager window
  2. In the top bar, change the packages to Packages: My Registries
  3. Select BehaviorTree.NET
  4. In the bottom bar, click Install

Update the package

  1. Open the Unity Package Manager window
  2. In the top bar, change the packages to Packages: In Project
  3. Select BehaviorTree.NET
  4. In the bottom bar, click Update to v0.2.0

Install from Git URL

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.

  1. Open the Unity Package Manager window
  2. In the top bar, click the + button
  3. In the dropdown, select Add package from git URL from the add menu
  4. 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
    • You can find all releases listed here
    • More information on specifying git references is available in the Unity Manual
  5. In the text box, click Add

Install from disk

Installing from disk lets you use a clone of the repo. This is useful if you are actively developing additional features for the package.

  1. Clone the repo to your file system
  2. Open the Unity Package Manager window
  3. In the top bar, click the + button
  4. In the dropdown, select Add package from disk from the add menu
  5. 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.

About

A behavior tree library in .NET or Unity

Topics

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Languages