Skip to content

Equipment

The Equipment asset is a scriptable object that lives in the Project Panel which contains information about the number of equippable slots and where each one of them is attached to the character.

The Equipment Asset

To create an Equipment asset, right click on the Project Panel and select Create → Game Creator → Inventory → Equipment.

Equipment

An Equipment initially has no equipment. Click on the Add Equipment Slot button to add a new slot.

Equipment Slot

An equipment slot has a Base Item and a Handle field.

  • The Base Item is the type of Item it accepts. For example, if all Helmets inherit from a Head item, using the Head template item will allow you to equip all helmets in this slot.
  • The Handle determines where the equipped prop is attached. It can either be a Value, which consists of a Bone, a local position and a local rotation, or a reference to a Handle asset. If the targeted character is a Humanoid, the bone can be picked from a dropdown list. If the character is a non-humanoid, the bone must be referenced using its hierarchy path.

Using the Equipment

Once the Equipment asset is created, this can be linked to a Bag component so the character knows which equipment slots it has available and where each one is attached.

Example

For example, the equipment that comes with the Inventory module has 4 equippable slots (head, body, right and left hand), plus three extra slots for consumable items:

Equipment Example

We can assign this Equipment asset to a Bag and all available slots will appear below.

Equipment Example to Bag

After assigning an Equipment asset to a Bag, the handle (and its bone) that is linked to each slot can be overridden. This is especially useful for non-humanoids, where their bone hierarchy names might not match.