Use the Behavior Designer Pro integration to let an agent check and change UIS Items/Currency, use Item Actions, interact, control panels, and request saves. Choose the integration for UIS Version 1 and Graph Designer-based Behavior Designer Pro.

Install and establish ownership

Install both products and verify the Inventory independently. Download the matching integration from Opsive Downloads, then import it after the project compiles. Back up an older integration before replacing it and keep one copy.

The package installs task sources under Assets/Opsive/BehaviorDesigner/Integrations/UltimateInventorySystem/Tasks. In the Task List, find Add Item, Has Item With Definition, and Use Item From Inventory. Configure them in the Task Inspector; the bridge supplies tasks rather than another scene component.

For the first test, put the tree on the Inventory GameObject and keep required components there:

Operation Required owner components/configuration
Item query/add/remove Inventory with the intended database and collections
Use Item From Inventory Inventory, Item User, valid Category Item Action Set mapping
Currency operations Currency Owner and configured Currency amounts
Interact Inventory and Inventory Interactor
Use Item Object Usable Equipped Items Handler
Drop Owner’s Inventory and a registered Item Object Spawner ID
Panel/save requests Configured panel manager or Save System, with matching IDs/names/index

Target-aware tasks use Target Game Object, falling back to the tree owner when empty. Put Remove Item, Drop Item From Inventory, and Compare Currency on the component-owning tree GameObject. Keep target components stable while a task runs; set or change target variables before starting the task, then restart it to refresh component lookup.

Build a Health Potion decision

  1. Give the agent a Health Potion and an Item User that can run its consume action.
  2. Add Selector with a first Sequence branch and a second fallback branch.
  3. In the Sequence, add Has Item With Definition, choose Health Potion, and set Amount 1. Choose the purpose of the collection the action will use; None checks the whole Inventory.
  4. Add Use Item From Inventory. Assign Item Action Set to a Category Item Action Set mapping the potion’s Category to its consume Item Action Set. Set Action Index within that mapped set, Item Definition, Amount 1, and the exact Item Collection Name. Keep Use All The Amount off for this single-item example.
  5. Leave Target Game Object empty for the shared owner. Test the action directly through UIS before running the tree.

The condition chooses whether to enter the action branch; the action reports the result of the configured Item Action Set. Match query and action collection scope. For transactions affected by concurrent writers or restrictions, use one project-owned operation that validates and applies the complete change.

Choose tasks and interpret results

Task Configuration and result
Has Item With Definition / Has Item With Category Definition/Category, Amount, Item Collection Purpose, Check Inherently, Count Stacks. Inheritance includes children; stack counting compares stacks instead of summed amounts.
Add Item Positive Amount, Definition, and collection purpose. Creates a runtime Item; success means the full requested amount was added.
Remove Item Owner-local Inventory, positive amount, Definition, and purpose. Success means a nonzero amount was removed; inspect actual amounts afterward.
Use Item From Inventory Category mapping, action index, Definition, exact collection name, and Use All The Amount or explicit amount. Returns the Item Action Set result.
Use Item Object Item Object Slot Index, Action Index. Requests the equipped handler operation; verify its effect.
Drop Item From Inventory Owner-local Inventory, valid Item Object Spawner ID, Definition/amount, purpose, and Remove Item On Drop. Verify spawned contents and remaining amount.
Exchange Item Between Inventories Valid Other Inventory Game Object, Definition, amount, and Give Item direction. Use for whole-Inventory partial transfers; requery both sides. Use a project transaction for collection-specific or all-or-nothing exchange.
Has Currency Currency Amounts required from the target owner.
Add Currency / Remove Currency Configure the complete Currency amounts. Returns the owner operation’s result; removal requires the owner to pay the full request.
Compare Item Amount / Compare Currency Use Equals To, Greater Or Equals To, or the corresponding Has task for inclusive checks. Implement an explicit project comparison for strict or smaller-than predicates.
Interact Requests the owner’s interaction. Check the world result separately.
Open Close Panel Valid Display Panel Manager ID and Panel Unique Name. Toggle takes precedence; otherwise choose Close or open, with Close Selected as the close fallback. Verify visible panel state.
Save, Load, Delete Save Save Index. Requests the operation; verify file/state changes through the Save System.

Enter constants for a fixed potion/amount/owner, or bind Shared Variables when earlier tasks supply values. Match Definition/Category assets to the target’s database. Set collection purposes/names, manager IDs, panel names, spawner IDs, slot indices, and action indices from the actual configured objects. Requery state after mutations before deciding the next branch.

Verify the tree

  1. Start with one potion. Confirm the condition succeeds, the action runs, its visible effect occurs, and the intended Item amount/state changes.
  2. Remove the potion and repeat. The condition should fail and Selector should enter the fallback branch.
  3. Exercise collection, inheritance, and stack-count choices independently. Test each comparison at, below, and above its threshold using the intended predicate.
  4. Test removal and exchange with limited quantities/capacity. Confirm both Inventories and the branch outcome agree with the chosen partial or transactional policy.
  5. Test required components on a disposable agent copy. Then verify interaction, equipped-object use, panel changes, and drop results through their actual consumers.
  6. Change a known amount, save, restart/load the same index, and compare restored state. A successful request node is only one checkpoint in that workflow.

Retest this minimal workflow after upgrading either product or the integration. See Inventory, Item Actions, Currency, and Interaction for the underlying UIS configuration.