Item Tips
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.

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.

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.

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.

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

| 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
- 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.
- Give repeated trigger, shooter and effect modules descriptive names and unique IDs wherever referenced by code/modules.
- Add Module State Switcher indices Repeat, Single and Burst. Assign exact State names, for example
AssaultRifle_Trigger_Repeat,AssaultRifle_Trigger_SingleandAssaultRifle_Trigger_Burst. - Put presets only on modules that differ. Enable/configure each intended trigger path while keeping shared ammunition, impact and perspective settings consistent.
- Add separate Animator motion/substates only where a mode needs them. The modes can share the same Animator Item ID.
- 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.