The Brain Builder Window¶
The Brain Builder window consists of left panel and a workspace. The left panel contains all the building blocks, organized in a tree, and the canvas is where you play around with the blocks to create behaviors.
The Left Panel¶
The left panel contains all building blocks that you can use to create rules. It is organised in a tree based on what the different blocks are used for. It also contains an integrated documentation that will display help for all built-in functionality of Unity as well as Brain Builder.
To create blocks, simply find hold your mouse button and drag items from the list to the workspace.
The left panel lists the following items:
- Brains: A Brain is a contained unit of behavior, consisting of rules, blocks, values and slots. They will be elaborated on later in this document. The list contains both brains created by you, by others and by Boldai.
- Events: Blocks that triggers on events that Unity sends, for example OnCollisionEnter or OnMouseUp, see Events.
- Other Brains: Public slots from other brains on other components.
- User Scripts: All methods and classes from the scripts that you have created, no matter if it’s UnityScript, C# or Boo.
- Brain Builder Builtins: Blocks that are built into Brain Builder. These blocks can compare values, set properties on other components and perform operations on values such as vectors and numbers.
- Unity Builtins: All methods and classes that Unity defines, complete with integrated documentation.
The Toolbar¶
The toolbar rests at the top of the Brain Builder window and holds the following buttons:
- Create: Displays a dropdown which allows you to create a new slot, block, value or brain. Slots, blocks and values created from this menu are placed in the currently editing brain.
- Search Field: Used for searching the left panel. Simply type some text and it instantly filters the list of items for you.
- Brain Selector: Shows which brain you are currently editing, and lets you switch between which brain to edit.
- Precompile: Prepares an assembly with all brains in your project precompiled. This will speed up the initial startup time and is required before building your game for iOS. It will not, however, affect the runtime performance of your brains.
- Show/Hide achievements: Shows or hides the achievements panel to the right of the window.
- Help: Opens this manual.
The Achievements Panel¶
The achievements panel contains a number of achievements you can receive for making progress inside of Brain Builder. Progress is saved across projects and brains, so you won’t lose any progress when switching projects.
If you can’t figure out how to complete an achievement, simply click on the label and you’re taken to the documentation that contains an explanation for how to complete a task. This documentation is available at Achievements in Brain Builder.
The Status Bar¶
The status bar contains helpful hints on what actions you can perform as well as information on what you are hovering with your mouse pointer.
If you can’t seem to remember the keyboard modifiers for certain tasks, you can keep an eye on the status bar to refresh your memory.
If you need information on what type a variable or expression is, simply hover the block to get a hint. The hovered block will highlight, and its contents will be printed on the status bar as well.
The Workspace¶
The workspace is where you will spend most of your time in Brain Builder. Here you assemble blocks into bigger blocks and stack them next to each other to form rules.
It is an infinite canvas, hold down the Alt key while dragging on the background to pan it. The scrollbars will help you to keep track of the rules, so you wont get lost.
For more information on the different blocks you can place on the canvas, see the Basic Concepts page.