Skip to content
/ XiJSON Public

A stupid simple serialization for ScriptableObject and MonoBehaviour

License

Notifications You must be signed in to change notification settings

hww/XiJSON

Repository files navigation

XiJSON Stupid simple serialization for Unity 3D

⚙ Build and Release openupm semantic-release: angular

Simple asstes renaming tool by hww

Introduction

Fast data serialization solution for Unity. Has been used in two commercial products for redemption machines.

Uses Unity's built-in JSON serializer, but does simple data sanitization using regular expressions.

Install

The package is available on the openupm registry. You can install it via openupm-cli.

openupm add com.hww.xijson

You can also install via git url by adding this entry in your manifest.json

"com.hww.xijson": "https://github.com/hww/XiJSON.git#upm"

Usage

For MonoBehaviour, just inherince your class from JsonBehaviour. For ScriptableObject, just inherince from JsonObject. After that the importing and exporting will read and write data to the StreamingAssets folder.

/StreamingAssets/XiJSON/Assets/        // For the all assets
/StreamingAssets/XiJSON/{SceneName}/   // For a scene with name 

About

A stupid simple serialization for ScriptableObject and MonoBehaviour

Resources

License

Stars

Watchers

Forks

Packages

No packages published