Unity package library for serializing and deserializing TOML data.
NOTE: This package is still in development and may have breaking changes in future versions until a stable v1.0.0 release is made.
The package library can be installed to your Unity project in the following ways:
- Using OpenUPM package manager
openupm add com.underlogic.toml-serialization
- Clone the repository and adding it as a local package
- Add the package by git URL
Installing it by git URL allows the package to be updated when new releases are available here.
Online documentation is automatically published to GitHub Pages.
Offline docs can be found in the Documentation~
folder, and can be viewed via mdbook
:
$ mdbook serve ./Documentation~ --open
The package library includes several sample scenes that demonstrate how to serialize and deserialize data. It is highly recommended that you import the samples so you can see the library in action and experiment with it.
To make working on the library easier while keeping this repository minimal, it is recommended to create a separate Unity project, (i.e. toml-serialization-project
).
Then link the following folders into the Unity project for easy editing/syncing while keeping code completion and intellisense:
$ cd toml-serialization-project/Assets
$ ln -s ~/toml-serialization/Samples~ Samples
$ mkdir -p Scripts && cd Scripts
$ ln -s ~/toml-serialization/Editor
$ ln -s ~/toml-serialization/Runtime
$ ln -s ~/toml-serialization/Tests
NOTE: This assumes both folders are in your $HOME
folder. Adjust paths accordingly if they differ.
Now you can work in the shell project without copying files back and forth, and also generating .meta
files automatically.