Search Unity

[RELEASED] KYI Data Table

Discussion in 'Assets and Asset Store' started by Astroray0733, Jun 23, 2016.

  1. Astroray0733

    Astroray0733

    Joined:
    Oct 9, 2015
    Posts:
    3
    Hi everyone!
    I recently released my first asset package on asset store.
    I create this thread for the future update and getting feedback.
    Any feedback and suggestion will be appreciated!

    [What is the KYI Data Table ?]
    KYI Data Table
    is a simple data handling tool for unity. It is designed for managing data table and array inside Unity and External editor such as Excel.

    [What you can expect from KYI Data Table?]
    • XML Import / Export : Populate data easily within other XML editor.
    • XML Encryption : AES based encryption supported [ver 1.2.0 or higher].
    • ScriptableObject Support : You can refer a data table from scripts regardless of scene dependency.
    • Automatic script generation : Data table script will be generated according to the data schema you defined.
    • Array Input Helper : You can access the array input helper by clicking header in every array and table. Array input helper supports you to fill array or table columns quickly.
    • Clean UI : Minimal but neat and well organized GUI. Data type coloring helps you quickly identify the type of each column in a table.
    • Full source code included : You can change whatever you want with source code. All code is documented and I included API reference document in the package.

    [Features in detail]

    UI Layout
    Table In Unity.PNG
    You can access array input helper by hitting the header.

    ScriptableObject Support
    ScriptableObject reference.PNG

    Automatic code generation
    Auto code generation.PNG
    Data Type Schema which is also ScriptableObject generates the table script adding create asset menu for the table.

    Array Input Helper
    Input helper.PNG
    Currently FILL, LINEAR, TEXTAREA Patterns are available.

    [Quick Instruction]

    Making data table as ScriptableObject

    1. Create data type context from unity editor context menu ( Recommended but not necessary )
    2. Create data schema from unity editor context menu
    3. Define your data type and field name for each data table column
    4. Hit "generate code" button in the data schema
    5. Create your data table from unity editor context menu and enjoy it!
    Making array and table in code
    I made wrapper classes for applying unity's serialization system which is ArrayWrapper<T> and DataTable<T>.
    Make a class inheriting from those classes and attach proper attribute to your array or table field.
    That's all.

    Example code for making enum array
    Code (CSharp):
    1. public enum EExampleEnum
    2. {
    3.    Example0,
    4.    Example1,
    5.    Example2
    6. }
    7.  
    8. [Serializable]
    9. public class ExampleEnumArray : ArrayWrapper<EExampleEnum> { }
    10.  
    11. public class Mono : MonoBehaviour
    12. {
    13.      [Array(typeof(EExampleEnum)]
    14.      public ExampleEnumArray;
    15. }
    Attributes
    All array and table GUI is drawn by custom PropertyDrawer.
    ArrayAttribute : Draws array.
    TableAttribute : Draws table.

    Tutorial Video




    Available on Unity Asset Store Ver. 1.0.0
    Download Document
     

    Attached Files:

    Last edited: Nov 10, 2016
  2. Astroray0733

    Astroray0733

    Joined:
    Oct 9, 2015
    Posts:
    3
    [Released] Update on v1.1.0

    Added

    • Icon applied to Data Type Context, Data Schema and Data Table Object.
    • Manages namespaces of data table.
    • Added EDTFileUtility class.
    Fixed
    • Config file redirection.
    • Other minor source code refactoring.
    Available on Unity Asset Store Ver. 1.1.0
     
    Last edited: Nov 10, 2016
  3. Astroray0733

    Astroray0733

    Joined:
    Oct 9, 2015
    Posts:
    3
    [Pending review] Update on v1.2.0

    Version 1.2.0 is now on review process. Please wait :)

    Added
    • List<T>
    • Stack<T>
    • Queue<T>
    • Dictionary<T>
    • XML encyprtion
    • Moving Type color settings window to Unity Editor Preferences.
    • Decorative attribute help you layout inspector without making custom editor.
    Fixed
    • Easy Data Table is now KYIDataTable!
    • Folder structure.
    Upgrade guide
    1. Back up Schema asset, DataTable asset and Generated Codes folder. And importing datatable as Xml for the safety!
    2. Delete previous version. (This is essential because entire folder structure is changed.)
    3. Import updated package. 4. Overwrite 'Generated codes' folder (You can delete 'TypeColorInfo.txt')
    4. Overwrite 'Generated codes' folder (You can delete 'TypeColorInfo.txt')
    5. Hit the button 'Update data table class' in the schema asset. If namespace error is shown, please change KYIGames namespace to KYIEngine and save it.
    6. Select all KYIDataTable assets and click 'Reimport' on the right click context menu in the unity to apply icon. (Not neccessary)
    If anything is going wrong, please contact me via support e-mail.
    I will handle it as soon as possible!
     
    Last edited: Nov 10, 2016