Start with one Character Item that spawns, equips, completes its primary action and equips again. Then use prefabs, States and named action modules to grow the library. Item Creation covers the initial build; Templates copies a tested action stack.

Choose what varies

Change Configure
Separate ownership, capacity or category Item Type / Item Definition
Different slot, action stack or equip/drop behavior Character Item prefab
Different held model, attachment or offsets Perspective Item
Different equipped combination Item Set and its State
Focused temporary serialized-value change State preset

Identical left/right pistols can share an Item Type with one prefab per Slot ID. Use separate Item Types when their ownership/pickups differ. Match the logical slot across perspectives and keep one prefab per definition/slot unless a custom Inventory deliberately chooses among variants.

A State changes serialized settings; author Animator states, clips and transitions separately when motion changes.

Apply States at the right level

Ability State for one item

An ability’s State activates while that ability runs. With Append Item enabled, its base State also combines with active equipped Item Definition names: Use plus Katana activates UseKatana as well as Use.

Use ability configured with State Use and its enabled Append Item option outlined in orange for slot 0 and action 0

Create the exact concatenated preset name; no separator is inserted. Update those names when renaming a definition. This suits an item-specific movement, rotation or camera adjustment while using it.

State for an equipped combination

The active Item Set enables its State on the character and disables the previous set’s State when the selection changes. Use a name such as DualPistols or SwordShield for loadout-wide adjustments. Inspect the runtime set’s validity and active status to confirm the State can apply.

Item Set Manager in Play Mode showing the active AssaultRifle set, enabled SinglePistol set, invalid DualPistols set, and default Body set

State for an action phase or selected mode

Activate States applies named States to the character while equipped, between start-use and use, or between use and use-complete, according to its phase toggles. Configure the names before runtime use.

Activate States module enabling the AssaultRifle State while equipped, during start use, and during use

Module State Switcher selects one State by index and deactivates its other entries on both the character and Character Item. Its index name/icon describe the selected mode.

Module State Switcher mapping Repeat, Simple, and Burst indices to AssaultRifle trigger States

Give each State a focused responsibility. For overlapping serialized values, check active status and preset priority in the State System.

Keep IDs and animation contracts clear

Shootable Action with ID 0, the name Shootable, and a description of its projectile and hitscan role

Identifier Contract
Action ID Unique on a Character Item; matches Use/Reload/other item abilities’ Action ID
Action Name / Description Inspector labels describing the operation, such as Primary Fire or Charged Cast
Module ID Code-facing lookup within its group; keep unique and review stored lookups after group edits/removals
Module name Inspector description, such as Primary Muzzle Flash; independent of its ID/list position
Animator Item ID Becomes SlotXItemID for that logical slot
Item ability state Supplies SlotXItemStateIndex
Action/equip substate Supplies the winning SlotXItemSubstateIndex
State-change trigger SlotXItemStateIndexChange supports transitions/re-entry

Configure the Animator parameters, transitions and animation events/durations for every selected substate. First-/third-person slots must share the same logical ID. Setting Animator Item ID alone does not create animations.

Example: one rifle with three fire modes

  1. Build a rifle with one Item Type, the intended Slot ID/Animator Item ID and a tested Shootable action with ID 0. Point Use and Reload at Action ID 0.
  2. Give repeated trigger, shooter and effect modules descriptive names and unique IDs wherever referenced by code/modules.
  3. Add Module State Switcher indices Repeat, Single and Burst. Assign exact State names, for example AssaultRifle_Trigger_Repeat, AssaultRifle_Trigger_Single and AssaultRifle_Trigger_Burst.
  4. Put presets only on modules that differ. Enable/configure each intended trigger path while keeping shared ammunition, impact and perspective settings consistent.
  5. Add separate Animator motion/substates only where a mode needs them. The modes can share the same Animator Item ID.
  6. In Play Mode, switch indices, fire repeatedly, reload and re-equip. Inspect the selected State and affected values after every change; prior modes should be inactive and actions should complete normally.

Maintain and reuse prefabs

Edit the prefab asset in Edit Mode. When using an Action Template, map projectile origins, hitboxes, audio, attachments and perspective references to the destination before saving; helper objects need explicit destination equivalents.

Keep reusable prefabs independent of a test character. Use Object Identifier or another stable runtime resolver for character-owned hierarchy objects. Pair ObjectPoolBase.Instantiate with ObjectPoolBase.Destroy; reset cached targets, temporary values, effects and subscriptions at the appropriate custom module/object lifecycle points.

Test pickup, equip, use, unequip, removal and pickup again, including rapid input. Inventory amounts, active Item Set State, slot Animator values, hitboxes, displays and effect/event counts should remain consistent across cycles. If a stage fails, use Item Troubleshooting to inspect the first rejected stage.

For extensions, choose an Action Module for an action stage, an Item Effect for a result needing item context, or an Impact Action for collision/damage context.