Blackboard

Blackboard manages multiple variables, passing values between graphs and storing temporary values.

Ability to integrate Blackboard

About the types of variables that can be used

Types that Unity supports serialization can be used for variables.
For details, see Unity - Manual: Script serialization.

UI description

(A) Toolbar

There is an add variable button and a search name field.

(B) Variable name

The type icon and name of the variable type.

(C) Variable value

Edit field for variable value.

Method of operation

Create variable

  1. Click the “+” button on the toolbar
  2. Select Single or List from the variable type dropdown on the type selection menu toolbar.
    If you select “List”, you can create a list (variable length array) variable.
  3. Select the type from the type selection menu.
  4. A variable will be created and you will be in name input mode, so enter the name.
  5. Confirm with Enter key.

Delete variable

You can delete it using one of the following methods:

  • Right-click the variable name and select “Delete” from the menu
  • Select the variable and press the Delete key

Variable access

How to access

  • Get
    Outputs the value of the variable to OutputDataPort.
  • Set
    Stores the value received from InputField into a variable.
  • Event
    Receive an event when the value of a variable changes EventComponent
    When an event occurs, output the variable value to OutputDataPort and notify the node that an event has arrived.

Method of operation

To access variables from a graph, you need to open the graph whose variables you want to access in Logic Editor.

To access it, add a node or node component using the following method.

Side panel

  1. Select Blackboard tab in side panel.
  2. Select the Blackboard type tab.
  3. Start dragging variables
  4. Drop to Graph View
  5. Select the node type from the node creation menu.
  6. Once the node is created, you will be in node name input mode, so enter the name.
  7. Confirm with Enter key.

Node creation menu

  1. Graph view Space key
    Alternatively, right-click and select “Create Node” from the menu.
  2. Enter “Variables” in the search field of the node creation menu
  3. Select the variables and nodes you want to access.
  4. Once the node is created, you will be in node name input mode, so enter the name.
  5. Confirm with Enter key.

Add component menu

  1. Click the “+” button in the node component list such as State node.
  2. Enter “Variables” in the search field of the node component addition menu.
  3. Select the variables and node components you want to access.