Skip to content

Trellcko/GoogleSheetsSynchronizer

Repository files navigation

Google Sheets Synchronizer

A Unity editor extension for synchronizing data from Google Sheets directly into your project.
Built with Odin Inspector for a clean and powerful editor UI and UniTask for modern async operations.


✨ Features

  • Download CSV data directly from Google Sheets.
  • View and manage synchronized data inside a custom Odin Editor Window.
  • Async operations powered by UniTask (no coroutines needed).
  • Built-in error handling for network requests.

📦 Requirements

  • Unity 2021.3 or newer (tested).
  • Odin Inspector – required for editor UI.
  • UniTask – required for async/await support.

⚠️ If Odin Inspector is not installed, the editor window will not be available, but synchronization can work.

🚀 Usage

  • Create a class that inherits from SynchronizedData.

Example:

using UnityEngine;

namespace Trellcko.GoogleSheetsSynchronizer
{
    [CreateAssetMenu(fileName = "TestSyncData", menuName = "Scriptable Objects/TestSyncData")]
    public class TestSyncData : SynchronizedData
    {
        public float Lalala;
    }
}
  • Now you need create a Sheet names of the fields and names of the first rows have to be the same
image
  • Publish the sheet
image
  • Copy ID of the sheet and paste it into the data
image image
  • If you have Odin Inspector, you can use Editor for better experience
image
  • If you don't have, you can use GoogleSheetsSynchronizer
    public class TestScript : MonoBehaviour
    {
        private IGoogleSheetsSynchronizer _synchronizer = new GoogleSheetsSynchronizer();
        private SynchronizedData[] _data;

        private void Start()
        {
            foreach(var data in _data)
            {
                _synchronizer.Synchronize(data);
            }
        }
        
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages