Skip to main content
Version: Next

codeTarget / dataTarget overview

-c and -d must match (code reads a given format, so data should be generated in that format).

Common combinations

ScenariocodeTargetdataTarget
Unity development JSONcs-simple-jsonjson
Unity release binarycs-binbin
.NET server JSONcs-dotnet-jsonjson
Javajava-bin / java-jsonbin / json
Gogo-bin / go-jsonbin / json
TypeScripttypescript-bin / typescript-jsonbin / json
Lualua-bin / lua-luabin / lua

For the full list, see Built-in names.

Naming convention

cs-simple-json ≈ language + loader library + data format. Data file contents are language-agnostic: changing -c does not change the semantics of -d json files.

Protobuf / FlatBuffers

There are also targets such as cs-protobuf3, protobuf3, and flatbuffers for schema/data integration with mainstream serialization formats. See the built-in names list and example projects.