---
title: "Data Tables - s&box library"
description: "A prototype inspired by Data Tables from Unreal Engine"
canonical: "https://sbox.watch/fr/libraries/tzainten/datatables/"
generated_at: "2026-10-09T13:44:15.152Z"
---

# Data Tables

A prototype inspired by Data Tables from Unreal Engine

- Type: bibliothèque
- Identifiant: tzainten.datatables
- Créateur: tzainten
- URL canonique: https://sbox.watch/fr/libraries/tzainten/datatables/
- Markdown: https://sbox.watch/fr/libraries/tzainten/datatables/index.md
- sbox.game: https://sbox.game/tzainten/datatables/
- Généré: 2026-10-09T13:44:15.152Z

## Statistiques

- dynamique sur 24 h: +0
- Terry Score: 65%
- Favoris: 4
- Votes positifs: 9
- Votes négatifs: 1
- Mis à jour: 13 janv. 2025
- Créé: 18 déc. 2024
- Taille: 107.7 KB
- Fichiers: 30
- Tags: 

## Description

How to Use
Data Tables provides you with a custom resource type that holds a list of data entries. You can then easily query data from this resource in C\#.

You define your Data Structure in C\# like so:
public class ExampleStruct : RowStruct
{
 public string Text { get; set; }

 public Dictionary<string, SoundEvent> Sounds { get; set; }

 public List<string> Strings { get; set; }
}And then query data from a Data Table like this:
ExampleStruct Struct = Table.Get<ExampleStruct>( "NewEntry\_0" );
Log.Info( Struct.Text );

When you make a change to your Data Table, those changes will be reflected in-game immediately after you save the file.

Custom Attributes
The \[JsonTypeAnnotate\] attribute will tell the serializer to also store this property's type, allowing for this property to be properly deserialized later.

Combining the above attribute with the \[Instanced\] attribute provides you with a dropdown in the editor. You can now select any class that inherits from the property's type.
public class BaseClass {}

public class A : BaseClass
{
 public int Integer { get; set; }
}

public class B : BaseClass
{
 public bool Boolean { get; set; }
}

public class ExampleStruct : RowStruct
{
 \[JsonTypeAnnotate, Instanced\]
 public List<BaseClass> List;
}

Report Issues
If you encounter a bug or you want something added, your options are:
- Submit a Bug Report / Feature Request right here on sbox.game
- Submit an issue @ https://github.com/tzainten/DataTables/issues
- I'm in the s&box Discord @tzainten




## More by tzainten

| Package | Identifiant | Joueurs | Favoris | Votes positifs | Score | Markdown |
| --- | --- | --- | --- | --- | --- | --- |
| Vivid Panels | tzainten.vividpanels | 0 | 0 | 0 | -- | https://sbox.watch/fr/libraries/tzainten/vividpanels/index.md |
