Ninja Bear Studio Plugins Help

Create Containers and an Inventory Layout

This how-to will show you how to create your first Containers and create an Inventory Layout, which is a bundle that can be added to an Inventory Manager.

Create a Backpack Container

  1. In your Content Browser, navigate to your container data folder. If you are creating a new folder, it should match the configuration in your Asset Manager.

  2. Right-click in any empty area, select the Inventory category and then Container Definition.

  3. Name your new container asset Container_Backpack and open it.

  4. Set the value Backpack to the Display Name property.

  5. In the Gameplay Tags property, add the Inventory.Container.Backpack Gameplay Tag, to identify this container.

  6. In the Gameplay Tags property, add the Inventory.Container.Default Gameplay Tag, to mark this as the default container.

  7. Set the priority to 100. This makes the default container to be selected last, prioritizing equipment slots.

  8. Set your Slots Attribute to NinjaInventoryAttributeSet:BackpackSlots.

  9. Set your Item Compatibility Query to support any items.

    Backpack Container Query
  10. When you are done, your Backpack Container should look like this.

    Backpack Container Data Asset

Create a Primary Item Container

  1. In your Content Browser, navigate to your container data folder. If you are creating a new folder, it should match the configuration in your Asset Manager.

  2. Right-click in any empty area, select the Inventory category and then Container Definition.

  3. Name your new container asset Container_Primary_Item_A and open it.

  4. Set the value Primary Weapon to the Display Name property.

  5. In the Gameplay Tags property, add the Inventory.Container.Primary.A Gameplay Tag, to identify this container.

  6. In the Gameplay Tags property, add the Inventory.Container.Equipment Gameplay Tag, to mark this as an equipment container.

  7. Set the Default State Tag to Equipment.State.Deactivated, to determine the initial state of equipment instances added to this container.

  8. Set your Item Compatibility Query to support any weapons except for shields.

    Primary Item A Container Query
  9. When you are done, your Primary Item A Container should look like this.

    Primary Item A Data Asset

Create a Secondary Item Container

  1. In your Content Browser, navigate to your container data folder. If you are creating a new folder, it should match the configuration in your Asset Manager.

  2. Right-click in any empty area, select the Inventory category and then Container Definition.

  3. Name your new container asset Container_Primary_Item_B and open it.

  4. Set the value Secondary Weapon to the Display Name property.

  5. In the Gameplay Tags property, add the Inventory.Container.Primary.B Gameplay Tag, to identify this container.

  6. In the Gameplay Tags property, add the Inventory.Container.Equipment Gameplay Tag, to mark this as an equipment container.

  7. Set the Default State Tag to Equipment.State.Deactivated, to determine the initial state of equipment instances added to this container.

  8. Set the priority to 2. This gives the secondary slot a lower priority than the primary one.

  9. Set your Item Compatibility Query to support off-hand weapons, including shields.

    Primary Item B Container Query
  10. When you are done, your Primary Item B Container should look like this.

    Primary Item B Data Asset

Create an Inventory Layout

  1. In your Content Browser, navigate to your container data folder. If you are creating a new folder, it should match the configuration in your Asset Manager.

  2. Right-click in any empty area, select the Inventory category and then Inventory Layout.

  3. Name your new container asset Layout_Player and open it.

  4. Type Inventory in the Display Name property, or select a value from a String Table.

  5. Notice the Default Container Query. It will look for Containers marked as Default.

  6. Add the containers created in the previous steps.

  7. When you are done, your Inventory Layout should look like this.

    Inventory Layout with Backpack and Primary Items
Last modified: 11 August 2024