# Bitflags being limited to 5 options in the inspector.

**URL:** <https://forums.unrealengine.com/t/bitflags-being-limited-to-5-options-in-the-inspector/2443270>\
**Category:** C++\
**Tags:** ENUM, unreal-engine, Blueprint\
**Created:** [April 6, 2025, 2:52pm UTC](https://forums.unrealengine.com/t/bitflags-being-limited-to-5-options-in-the-inspector/2443270 "2025-04-06T14:52:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZhadoTom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZhadoTom](https://forums.unrealengine.com/u/ZhadoTom)\
**Post date:** [April 6, 2025, 2:52pm UTC](https://forums.unrealengine.com/t/bitflags-being-limited-to-5-options-in-the-inspector/2443270/1 "2025-04-06T14:52:40Z")

</div>

```auto
UENUM(BlueprintType, meta = (Bitflags))
enum class EEquipSlot : uint8
{
	None = 0,
	Head = 1 << 0 UMETA(DisplayName = "Head"),
	Face = 1 << 1 UMETA(DisplayName = "Face"),
	Chest = 1 << 2 UMETA(DisplayName = "Chest"),
	Hands = 1 << 3 UMETA(DisplayName = "Hands"),
	Waist = 1 << 4 UMETA(DisplayName = "Waist"),
	Legs = 1 << 5 UMETA(DisplayName = "Legs"),
	Feet = 1 << 6 UMETA(DisplayName = "Feet"),
};
ENUM_CLASS_FLAGS(EEquipSlot)

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Equip Settings", meta = (Bitmask, BitmaskEnum = "EEquipSlot"))
	int32 EquipFlags; 

```

When I check this in the inspector I only get options up to “Waist” and “None” doesn’t unflag everything like you’d expect.

Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![ZhadoTom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZhadoTom](https://forums.unrealengine.com/u/ZhadoTom)\
**Post date:** [April 6, 2025, 3:20pm UTC](https://forums.unrealengine.com/t/bitflags-being-limited-to-5-options-in-the-inspector/2443270/2 "2025-04-06T15:20:11Z")

</div>

To anybody who encounters this issue, I found adding "UseEnumValuesAsMaskValuesInEditor = “true” allowed them to all appear.

None wont clear the bitmask unless you expand it with a function, so if you want it to not be displayed just us UMETA(Hidden)

Updated Code:

```auto
UENUM(BlueprintType, meta = (Bitflags), UseEnumValuesAsMaskValuesInEditor = "true")
enum class EEquipSlot : uint8
{
	None = 0 UMETA(Hidden),
	Head = 1 << 0 UMETA(DisplayName = "Head"),
	Face = 1 << 1 UMETA(DisplayName = "Face"),
	Chest = 1 << 2 UMETA(DisplayName = "Chest"),
	Hands = 1 << 3 UMETA(DisplayName = "Hands"),
	Waist = 1 << 4 UMETA(DisplayName = "Waist"),
	Legs = 1 << 5 UMETA(DisplayName = "Legs"),
	Feet = 1 << 6 UMETA(DisplayName = "Feet"),
};
ENUM_CLASS_FLAGS(EEquipSlot)

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Equip Settings", meta = (Bitmask, BitmaskEnum = "EEquipSlot"))
	int32 EquipFlags; 

```
