[Unity asset · Asset Store · Coming soon]
Sheet Maker for Unity
Write and read spreadsheets from C#, at runtime and in the Editor: .xlsx workbooks and .csv files, to a file, a Stream or a byte[].
Unity 6000.0.84f1+
This opens your email app. If nothing opens, write to luanrobs@gmail.com. I will reply once, on launch day. I will not add you to a list.
QUICK START
using System;
using System.IO;
using Luanrobs.Sheets;
using UnityEngine;
public class QuickStartWrite : MonoBehaviour
{
private void Start()
{
string path = Path.Combine(Application.persistentDataPath, "scores.xlsx");
using (var workbook = new XlsxWriter(path))
{
XlsxSheetWriter sheet = workbook.AddSheet("Scores");
sheet.SetColumnWidth(2, 20); // column C holds dates: wide enough for "2026-10-08 00:00:00"
sheet.AddRow(new SheetStyle { Bold = true }, "Player", "Points", "Date");
sheet.AddRow("Ana", 1200, new DateTime(2026, 10, 8));
sheet.AddRow("Bruno", 950, new DateTime(2026, 10, 7));
}
Debug.Log("Saved " + path);
}
}
TESTED ON
| Configuration | Result |
|---|---|
| Unity 6000.3.12f1 and 6000.0.84f1, Windows 11 Editor | All 2100 EditMode tests pass on both, including the suites that run under the pt-BR and de-DE cultures, also in new projects that installed the package from its .tgz file. |
| Windows 11 players, Mono and IL2CPP | The demo ran through its four scenes with no input, and 100,000 rows were exported and read back. The IL2CPP player wrote the same files, byte for byte, as the Mono player. |
| Android emulators, IL2CPP | Android 16 (API 36) with Unity 6000.3.12f1 and Android 7.0 (API 24) with Unity 6000.0.84f1: all four scenes, and 100,000 rows exported and read back. No physical device was used. |
| Files written and read | Workbooks written by the tests and the demo were checked with openpyxl 3.1.5, and workbooks made with openpyxl were read back with the expected values. |
| WebGL | An earlier build ran its four scenes in headless Microsoft Edge on 2026-10-08. It was not run again after the corrections of 2026-10-09 and 2026-10-15. |
| Play mode with Domain Reload disabled | Unity 6000.3.12f1: three sessions in a row passed, with the same files and the same static state each time. |
Tested with version 1.0.0
WHAT IT DOES NOT DO
Out of scope in 1.0.0. Charts, images, pivot tables, conditional formatting, formula evaluation, password protection, the old binary
.xlsformat,.ods, cell comments, rich text inside one cell, Google Sheets or any online sync, and Editor importers that turn sheets into ScriptableObjects.Also not included. Automatic column width, row heights, font name and size, vertical alignment, a WebGL browser-download helper, CSV formula-injection escaping, and encodings other than UTF-8 for streams and files.
Formulas are stored, not calculated.
SheetCell.Formulawrites the formula text only. A spreadsheet application calculates it when it opens the file. This package's reader, and any reader that does not calculate, sees no value for it.Styles, links, merged ranges and column widths are not read back. Cells from a reader have no style and no link, and a merged range is returned as plain cells with the value in its top-left cell.
Other applications. Files made by Microsoft Excel, LibreOffice and Google Sheets were not available on the test machine and were not tested, and the files this package writes were not opened in them.
WHAT IS IN THE PACKAGE
C# source of the runtime, in the assembly
Luanrobs.Sheetsand the namespaceLuanrobs.Sheets. The package has no Editor assembly, no native code and no plugin.EditMode tests in
Tests/Editor, with small fixture files used as test input.The demo sample: four uGUI scenes and one bundled spreadsheet.
The manual, as Markdown.
Unity module used:
UnityEngine.CoreModule. No other package is required.No third-party code or assets. See
Third-Party Notices.txt.
SUPPORT
I answer the support email myself, in English or Portuguese: luanrobs@gmail.com
To reproduce a problem I need: Unity version, package version, platform and OS version, the Console log, and the steps to reproduce it.
Purchases, licenses and refunds are handled by the Unity Asset Store.
HOW IT WAS BUILT
This package was developed with the assistance of generative AI tools.
The code, the tests, the documentation and the sample content were generated with Claude (through Claude Code) under my direction, then run and tested as listed under "What was tested".
luanrobs is one developer: me. If something doesn't work for you, email me and I'll do my best to fix it.
CHANGELOG
1.0.0 · 2026-10-08
XlsxWriterandXlsxSheetWriter: a streaming .xlsx writer with several sheets. Rows are compressed as they are added, so a large sheet is never held in memory as a whole, and the shared string table is bounded (65,536 distinct texts, about 4 million characters; later texts are written inside their cells). Output goes to a file, to aStreamthat does not have to seek, or to memory (ToArray()).- Cell types: text (shared strings, or inline with
UseSharedStrings = false), numbers (NaN and infinity are written as the error#NUM!), booleans, dates and times (stored as serial numbers with a date number format, with the 1900 leap-year quirk handled), and formula text that is stored and not calculated. Values convert toSheetCellimplicitly. SheetStyle: bold, italic, underline, font colour, fill colour, borders with three thicknesses, horizontal alignment, wrap and number format;SheetColor(also from UnityColorandColor32) andSheetNumberFormats. A style applies per cell, per row or per column.