Use the PlayMaker bridge to query/mutate UIS data, invoke Item Actions, request UI/save operations or send UIS Item Actions into an FSM. This guide targets UIS Version 1 and PlayMaker’s classic HutongGames.PlayMaker API. Install a matched bridge release and test it with the installed PlayMaker version.

Install and prepare targets

Back up the project, compile PlayMaker and UIS separately, then import the PlayMaker integration from Opsive Downloads. Keep one copy under Assets/Opsive/UltimateInventorySystem/Integrations/Playmaker and resolve compilation before opening an FSM.

In the Action Browser choose Ultimate Inventory System and locate Has Item With Definition, Use Item From Inventory, Add Currency and Open Close Panel. The bridge supplies actions configured in normal states.

For the first test, put the FSM, Inventory and Item User on the same player GameObject. Assign any other required components directly to the target. Keep targets stable after FSM initialization: target-based actions cache their UIS component references in Awake.

Example: check and use a potion

  1. Create events HAS_POTION, NO_POTION, USED_POTION and USE_FAILED.
  2. Add Has Item With Definition to Check Potion. Use the owner target, Health Potion, Amount 1, Check Inherently off, Count Stacks off and Item Collection Purpose None.
  3. Map Success Event to HAS_POTION and Fail Event to NO_POTION. Turn Every Frame off. Transition to Use Potion or the fallback state.
  4. In Use Potion, add Use Item From Inventory. Assign a Category Item Action Set mapping the potion category to its consume Item Action Set, the intended Action Index, Health Potion, Amount 1 and Item Collection Purpose None.
  5. Map success/failure to USED_POTION/USE_FAILED, keep Every Frame off and add both transitions.

The first action checks ownership; the second invokes the mapped action with Item User context. Verify the visible effect and actual Item amount as well as the transition.

Send an Item Action into PlayMaker

Add a string Item attribute FSMEvent with value POTION_USED, then add Play Maker Event Item Action to the UIS Item Action Set resolved by the menu/hotbar’s Category Item Action Set. Keep Attribute Event Name as FSMEvent or provide the exact alternative; Default Event Name supplies a fallback.

Enable Append Item Name for an event formatted <event>_<item name> and use Debug Event Name while checking the string. The action finds an FSM first on Item User, then on the Item’s Inventory GameObject. Declare the corresponding FSM event and invoke the action through UIS. Pair event dispatch with a consume/equip action when gameplay data should also change.

Select actions and result semantics

Items and attributes

Action Configure and observe
Add Item Target, definition or definition variable, amount and collection purpose. Success requires the full amount added.
Remove Item Target, definition, amount and purpose. Success means a nonzero removal; check the amount for full fulfilment.
Has Item With Definition / Category Amount, definition/category or variable, inheritance, stack-count and purpose choices; success means at least the requested amount.
Exchange Item Between Inventories Two valid Inventory targets, definition, amount and Give Item direction. Use for whole-Inventory transfers that permit available partial quantities; verify both resulting balances.
Drop Item From Inventory Registered Item Object Spawner ID, definition, amount, purpose and Remove Item On Drop; verify the spawned object and Inventory change.
Use Item From Inventory Category Item Action Set, index, definition, amount, inheritance and purpose; target requires Inventory and Item User.
Use Item Object Item Object Slot Index, Action Index and a target Usable Equipped Items Handler; verify the behavior after the request.
Typed Get Set Item Attribute Value Int, Float, Bool, String, Object or Currency Amounts variant matching the attribute; select definition, attribute name, inheritance, purpose and typed values.

Typed attribute actions read the first matching runtime Item or set its override value. For Currency Amounts, Currencies Value and Amounts Value arrays must have equal lengths when setting.

Item Collection Purpose None searches the full Inventory for supported query/use actions; a selected purpose narrows those lookups. Check Inherently includes child definitions/categories. Count Stacks counts stacks rather than their total quantity. Use a project-owned transaction for collection-specific or all-or-nothing exchanges.

Currency, UI and saving

Action Configuration/result
Add / Remove / Has Currency Currency Owner target, Currency, amount and result events; check actual balances after mutations.
Interact Inventory plus Inventory Interactor on the target and a valid interactable in range; success signals a request.
Open Close Panel Display Panel Manager ID, Panel Unique Name, Toggle, Close, Close Selected. Toggle takes precedence; otherwise choose close/open. Inspect the resulting panel.
Save / Load / Delete Save Save Index, registered Savers and success event. Verify stored/restored state separately from request completion.

Use Has Item With Definition/Category and Has Currency for at-least conditions. For equality, strict or less-than comparisons associated with Compare Item Amount / Compare Currency, use a project-owned comparison action with one result event and tests below, at and above the threshold.

With Every Frame off, applicable actions run once on entering the state and finish. Enabled actions repeat while active. Keep mutations one-shot unless another system deliberately rate-controls repetition. Configure both result transitions wherever supported.

Verify the FSM

Give the player one potion: Check Potion should take HAS_POTION, and Use Potion should produce the mapped effect and expected amount change. Remove the potion and confirm NO_POTION without entering Use. Invoke the UIS event action and confirm the exact event reaches the intended FSM.

Test successful/failed Currency removal, Item restrictions, partial transfer and missing Items. Inspect UI visibility and saved/restored Inventory directly after request actions. For attribute failure, check the exact name, type and matching runtime Item. For missing actions or references, resolve compilation, target/component ownership and database assignments before changing FSM transitions.