Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

[Released] - Data Driven Enums - Good for modding

Discussion in 'Assets and Asset Store' started by Eck, Oct 2, 2023.

  1. Eck


    Nov 16, 2014

    Unity Store
    50% off for the next 10 days!​

    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.

    I'm happy to answer any questions you might have:

    And here's a link to the Full Documentation.

    Below is an example of a CardType JSON data file, and how you might use this package to create different cards for a card game. DataFiles.png

    YouTube Links:
    - Eck
    EckTech Games

    Attached Files: