View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0.0
- Last updated
- First released
- Unity version
- 2021.3.29 or later
- Package size
- 375 KB
- Files
- 38
- Favorites
- 15
- Views in the past week
- 8
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $7.50 on
Keywords
Data Driven Enums
This package provides a data-driven replacement for standard C# Enums. And since the data files are specified inside Streaming Assets, players can mod in their own entries.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 5
Data Driven Enums screenshot 1
About this asset
Data Driven Enums is a package that lets you tie meta data to int or string ID values and serves as a replacecment for C# enums. This allows developers to move away from hard coding against specific enum values and drive code decisions with data instead. When we do this, it makes the code cleaner and easier to maintain while also making it trivial to add new entries in the enumeration. Additionally, when this data is defined from files inside of StreamingAssets, modders will have a much easier time modding in entries and extending the life of your game.
Take a look at the following video links for more information:
- https://youtu.be/QuvtoUu7xe4 - What is Data Driven Enums
- https://youtu.be/d8LxQJW57Cs - Enum Creation Tutorial
- https://youtu.be/KG6HR_adt3Q - Modding Tutorial
Send questions and comments to:
And here's a link to the Full Documentation.
From the publisher's Asset Store listing.
Technical details
Features:
- Enumeration and EnumValue base classes that your Data Driven Enumerations will inherit from
- Code Generation Templates / Helper Window to create your own Data Driven Enumerations
- Custom Property Drawer to display string and int backed Enums as a Popup List in the inspector
Supported OS:
This package uses standard C# and has no special OS considerations. It should work with any OS that Unity supports.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2021.3.29f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.