UMIPClassRestrictorAsset
Overview
UMIPClassRestrictorAsset is a small item piece asset that restricts which player classes may equip or use an item. It only stores a FGameplayTagContainer of class tags under the Class category (RestrictedForClasses). Gameplay code checks this asset against the player’s current class tag(s) before allowing equip or use.
All paths below are relative to Plugins/ModularInventoryPlus/Source/ModularInventoryPlus/.
Key Classes & Files
| Class |
File |
UMIPClassRestrictorAsset |
Public/Inventory/DataAsset/MIPClassRestrictorAsset.h |
IsDataValid |
Private/Inventory/DataAsset/MIPClassRestrictorAsset.cpp |
Properties
| Property |
Type |
Description |
RestrictedForClasses |
FGameplayTagContainer |
Tags under Class — item is only valid for these classes. |
Editor validation
| Severity |
Condition |
Message |
| Error |
RestrictedForClasses is empty |
RestrictedForClasses is empty — restriction has no effect. |
Implementation: Private/Inventory/DataAsset/MIPClassRestrictorAsset.cpp (#if WITH_EDITOR).
Integration