Documentation đź“–

Your guide to using NodeCanvas in Unity

Using BBParameters in Tasks

BBParameters are a great way of making your tasks be more dynamic by having the ability to use blackboard variables in place of simple value fields within your task. In short, when declaring a field of some type, you can instead use BBParameter<T>, which will allow you to either select a Blackboard variable or set a value directly. Here is the same delay example as before, but using a BBParameter<float> instead. Notice that in this case, the ‘BBParameter<T>.value‘ property has to be used instead.

The following “Move To Target” action task for example, has three BBParameters defined, those being “Target”, “Speed”, and “Keep Distance”. Here, Target has been linked to a Blackboard variable, while the others are set a direct value.

BBParameter

Remember that even though you also have access to the Blackboard directly through the inherited .blackboard property if you so require to read/write manually to its variables, it is highly recommended to use BBParameters instead.

Yes No
Last updated on April 4, 2025
Suggest Edit

© Paradox Notion 2014-2025. All rights reserved.