Skip to content

Pamcha/CodaSync

Repository files navigation

Coda Sync for Unity

An easy-to-use database system for your Unity Games based on Coda.io. With Coda Sync for Unity, you create and edit all your game’s data in a collaborative environment designed for teams!

GitHub

<<Website | Documentation | Tips and tricks>>

Coda Sync Cover

Coda Sync for Unity allows you to synchronize the tables you have created in a coda doc (on coda.io) in your Unity Project. Your data are imported as Scriptable Objects by automatically generating a class and its instances, and ready to be used anywhere in your code or in the inspector.

You can sync again any time, whenever you have made a change to your data on your doc(s).

1. Create and design your data 2. Make the perfect database for your game 3. Setup your Unity project 4. Sync your asset references in your tables 5. Generate and update your data anytime

⚠️ Please note that you need to create a free account on coda.io to create your docs. Coda.io offers a generous free tier that should cover most of your needs.

🙋Our studio is not related to Coda. We use Coda as makers for several years and have built this asset using the Coda API. Coda provides us a great support for this package.

Installation

Requirement

This project has a dependency to com.unity.editorcoroutines package that will be automatically installed if not already installed in your project.

Using Package Manager

In the package Manager Window (Window/Package Manager) click on the little plus sign (+) on the top left corner. Select "Import package from Git URL" and type https://github.com/Pamcha/CodaSync.git.

Using Git and Manifest.json

Find the manifest.json file in the Packages folder of your project and add a line to dependencies field.

  • "com.pamcha.codasync": "https://github.com/Pamcha/CodaSync.git"

Technical details

  • Converts Coda tables into Unity Scriptable Object classes
  • Converts table entries into instances of these classes
  • Stores all theses instances in a database class that is easily accessible for your code
  • And since these data are Scriptable Objects, they can easily be serialized and use anywhere in your game project

Works on all platform since what you get are Scriptable Objects.

Please note that these Scriptable Objects are generated/updated on the editor, not on runtime. Therefore Coda Sync for Unity is not a live Ops tool, but instead a great way to manage all your game data in a collaborative and easy to use environment.