Skip to content

WeAthFoLD/BTScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BTScript

A text-based behaviour script language for Unity.

Motivation

The project is created in frustration that current Unity behaviour tree plugins (e.g. Behaviour Designer) is overly complex and feels strange to work with. As a programmer, I prefer a text based rather than dragging long branches of nodes.

Main features:

  1. Simple script language syntax
  2. Extensible (can easily create custom nodes)
  3. Workflow is flexible and simple

Installation

Clone the repository and copy the Assets/Plugins/BTScript folder into your project's same directory.

VSCode plugin

BTScript has VSCode plugin support. Search btscript in extension marketplace. Source is in ./VSCodeExtension folder.

Usage

  • Create a .bts.txt file in your project
  • Write the script
  • Assets -> Create -> Behaviour Script to create a new BehaviourScript asset
  • Choose the asset, specify the .bts.txt file, click compile
  • In your GameObject, create an Behaviour Tree component
  • Select the corresponding BehaviourScript asset.

Donation

Would appreciate a cup of coffee if you liked my work!

TODO

  • Write longer and detailed introduction
  • Documentation of language syntax
  • Better blackboard variable support, language wise / inspector wise

About

Text-based Behavior Tree for Unity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages