llms.txt: machine-readable documentation index. Markdown version of this page is also available.

Ninja Bear Studio Plugins Help

Set Up Ninja Inventory

Prerequisites

Start with a playable pawn or a Player State that can own the player's inventory. Fixed-size containers can use inventory data alone. Features such as attribute-driven capacity, consumable Gameplay Effects, and item abilities also need a working Unreal Ability System Component.

Setup Checklist

Step

When you need it

Where to go

Enable Ninja Inventory and its engine dependencies. Add NinjaInventory to modules that reference its C++ classes.

Every project (module dependencies apply to C++)

Install plugins

Register item and container definitions with Unreal's Asset Manager.

Every project

Asset Manager settings and configuration entries

Add an Inventory Manager, a starting container, and one item.

To check that the owner initializes

First Steps

Add NinjaInventoryAttributeSet to the owner's ability system and initialize the attributes you use.

Attribute-driven slots, weight limits, or wealth

Initial attribute values

In Project Settings → Asset Manager → Primary Asset Types to Scan, register InventoryContainerData with base class NinjaInventoryContainerDataAsset and InventoryItemData with base class NinjaInventoryItemDataAsset. Add the folders where you will create the assets, for example /Game/Data/Containers and /Game/Data/Items. Use non-Blueprint primary assets and Always Cook so the same definitions are available in a packaged build.

Choose Your Setup Guide

Both guides use the same Inventory Manager. Either can be your first layout.

Initialization Data

For a bag that grows with the character, set its slot count type to Gameplay Attribute and select BackpackSlots. Add the inventory attribute set to the owner's ability system and initialize it with a Data Table using the AttributeMetaData row type. This sample starts the character with 12 backpack slots, a weight limit of 100, and zero wealth. Adjust the values to suit your game. If you use Ninja G.A.S., follow Give a Backpack Its Capacity to assign the table to an ability bundle.

[ { "Name": "NinjaInventoryAttributeSet.Wealth", "BaseValue": 0, "MinValue": 0, "MaxValue": 0, "DerivedAttributeInfo": "", "bCanStack": false }, { "Name": "NinjaInventoryAttributeSet.WeightLimit", "BaseValue": 100, "MinValue": 0, "MaxValue": 0, "DerivedAttributeInfo": "", "bCanStack": false }, { "Name": "NinjaInventoryAttributeSet.BackpackSlots", "BaseValue": 12, "MinValue": 0, "MaxValue": 0, "DerivedAttributeInfo": "", "bCanStack": false } ]
25 November 2026