VerseIsland
FeedLearnLeaderboardGuidesReferenceExploreSearchDocsVerse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Browse Fortnite›Verse Language·Up to Fortnite · Verse Language·37 of 570 in Verse Language

Enum in Verse

Enum is short for enumeration, which means to name or list a series of things, called enumerators. This is a type in Verse that can be used for things like days of the week or compass directions.

Creating an enum in Verse

Click image to enlarge.

Closed and Open Enums

Verse uses the <open> and <closed> attribute specifiers on enums to determine how you can change the definition of the enum once your island is published.

Enums are closed by default. With closed enums, you cannot add or reorder enum values or change a closed enum to an open one once your island has been published.

Closed enums are best used for cases where your values are expected to stay the same, like days of the week.

With open enums, you can:

  • Add new enum values.
  • Reorder enum values.
  • Change an open enum to a closed enum.

Open enums are best used when you expect the number of values in your enum may increase in the future. For example, an enum of weapon types.

Open enums cannot be used in a case statement without a default case. Closed enums can be used in case statements without a default case only if all enumeration values have a case.

You're reading a preview

The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.

Sign in with Discord — free for members Read the original at Epic Games documentation

Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.

Guided course

Add this to your free study plan — we’ll suggest related material and stitch it into one compile-checked lesson.

Keep exploring
More in Verse Language · 37 of 570
Prev
defer in verse
Next
expressions in verse
Browse all files in this folder (A–Z)

Source

Epic Games documentation

View original

Last updated 2026-03-08T05:24:09.758743+00:00

VerseIsland· an archipelago of Verse & UEFN knowledge
🗺️ Island atlasLearnGuidesHistoryAbout & PressSources & LicensingPrivacy PolicyTermsStatus

Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

🦜

Scout · your island guide

The Isle of Verse