Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

[Release] Data Manager

Discussion in 'Assets and Asset Store' started by quincyHuang, Aug 5, 2022.

  1. quincyHuang

    quincyHuang

    Joined:
    May 30, 2013
    Posts:
    20
    Data Manager
    Two Cats Code | Online Documentation | Discord | Unity Asset-Store

    Data Manager is a one-stop text data solution. Easy to use. We created a set of tools to handle .INI, .CSV files and included built-in editors accordingly. We also created a set of expanded tools based on these cool tools. Such as Localization, Memory (Saving & Loading System), Blackboard, Algebra, Todo, and more are coming…

    Spotlight
    • Currently, Algebra is the only tool of this type you can find from the Unity Asset Store!
    • Don't want to waste a lot of time sorting documents? Don't want to waste a lot of time reading lots and pieces of development documentation? Try Todo . It is a toolset for Data Manager that provides centralized in-code document management. It supports embedded images and links and supports one click to open the IDE and jump to the specified line.
    **Credits:** Data Manager uses OdinSerializer as the underlying serializer. We are very grateful for the generosity of the Odin Company.

    Guides
    Install & Upgrade

    General Concept

    Release Notes

    Roadmap

    Open Tickets

    Ini-File Manager

    CSV Manager

    Memory

    Localization

    Blackboard

    Algebra

    Todo

    Features
    • Use as a saving system.

    • Source code included.

    • Big files supported.
      • 350,000+ rows tested.
    • In Unity Editor included.

    • Easy to expend the APIs.

    • Fuzzy search.

    • Easy to integrate into any project.
    ️ Supported Data Conversion
    Custom Data Conversion

    Data Represent Manner

    • Transform

    • Quaternion

    • Tuple

    • float

    • int

    • string

    • Vector2, 3, 4

    • List<T>

    • Dictionary<string, Cell>

    • more is coming…

    Localization.png Todo.png Blackboard.png Memory.png
     

    Attached Files:

    CodeSmile likes this.
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,019
    Regarding CSV files: read-only or read-write?
    Does it handle these (not so uncommon) special cases where a string cell contains one or more of the following embedded characters: string quotation, newline, line feed, delimiter?

    Is it locale-aware?
    Some users may have ; as delimiter, or tab or any other character. Numbers may be formatted as 1,234,567.89 rather than 1.234.567,89

    Text file format?
    UTF-8 is standard but not so with Excel on Windows, it still defaults to writing windows codepage (1225 I think) text files.

    Oh and is it using regex or string.split to read CSV, or an actual parser?

    CSV ain't so easy after all. :)
    I wrote my own parser for fun and laughter, that's why I'm asking.
     
  3. quincyHuang

    quincyHuang

    Joined:
    May 30, 2013
    Posts:
    20
    Hi CodeSimle, thanks for asking these good questions.
    Let me answer them one by one (based on the design of Data Manager).

    1. read - write

    2. For each cell, we assume that they all strings first. As the string can be converted to any other type easily. For those simple cells, they are just plain text. E.g., 123, ABC. For those cells that contain embedded characters, the cells will be wrapped by double quotes. E,g, "1,2,3,4" as a list, "Hi, nice to meet you." contains a comma.

    3. UTF-8 only. As reading Excel files requires an extra DLL, I do not see any points why I need to do this in Unity Editor. As we can just open the Excel app to do so. In Unity Editor, just for fast and quick use.

    4. I wrote a tokenizer for tokenizing the csv file and then parser them as string cells and stored them in a 2D list. I will only convert the data type whenever I need it later.
     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,019
    Thanks for the answers!
    Btw you don't need to add the Office DLLs just for reading CSV data. But the CSV file can have windows codepage encoding, so if you open that with UTF-8 encoding you get garbled characters (the ones that are non-ASCII).
     
  5. quincyHuang

    quincyHuang

    Joined:
    May 30, 2013
    Posts:
    20
    Ah, yes. Thanks for the correction.