Hujunhao1024 / XlsToJson

Xls to Json or ScriptableObject

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[unity] Xls To Json or Scriptable Object

Unity: Convert excel sheet to Json / Scriptable object

xls_to_json

requirement

unity2017 or later
npoi2.5.1 or later

usage

  1. Download sample project and open.

  2. Right click on Sample.xlsx and XlsToJson Settings....

  3. Click 'CREATE Importer'.
    Source code is automatically generated.

    • Assets/Class_Character.cs
    • Assets/Class_Stage.cs
      Defines the table type.
    • Assets/Character.cs
    • Assets/Stage.cs
      Allows singleton access to tables.
    • Editor/XlsToJson/importer/*.cs
      These files will link Excel and Json data.
  4. Menu: Tools/XlsToJson/[Create] Json Data.
    Json data will be generated in 'Resources/'.

    image

  5. After editing Json data, Menu: Tools/XlsToJson/[Xlsx Update] Json Data -> SampleData.xlsx
    Export Json data to Excel.

see more detail : https://www.create-forever.games/xls-to-json-en/
see more detail (japanese): https://www.create-forever.games/xls-to-json2/

license

This sample project includes the work that is distributed in the Apache License 2.0 / MIT / MIT X11.

NPOI (Apache2.0): https://www.nuget.org/packages/NPOI/2.5.1/License
SharpZLib (MIT): https://licenses.nuget.org/MIT
Portable.BouncyCastle (MIT X11): https://www.bouncycastle.org/csharp/licence.html

About

Xls to Json or ScriptableObject


Languages

Language:C# 100.0%