faster-games / t4

T4 text template generative importer for Unity3D. πŸ“πŸ—

Home Page:https://t4.faster-games.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

t4

T4 text template generative importer for Unity3D. πŸ“πŸ—

Project logo; A pink package on a grey background, next to the text "T4 Templates" in purple

GitHub package.json version openupm CI Discord

T4 Text Templates provide a way to generate csharp code from templates, which are a mixture of text blocks and control logic. If you've ever used Mushtache or Go's html/template, T4 templates are pretty similar. This package allows Unity developers to author T4 templates (.tt files), and rely on the Editor to process them and generate code.

Installing

This package supports openupm - you can install it using the following command:

openupm add com.faster-games.t4

Or by adding directly to your manifest.json:

Note: You may also use specific versions by appending #{version} where version is a Release tag - e.g. #v1.2.0.

dependencies: {
	...
	"com.faster-games.t4": "git+https://github.com/faster-games/t4.git"
}

Or by using Package Manager to "Add a package from Git URL", using the following url:

https://github.com/faster-games/t4.git

Documentation

Manual πŸ“– | Scripting API πŸ”Ž

Please also see these resources from Microsoft, as they are the authors and maintainers of the T4 templating featureset and format:

Quickstart

  • Add a .tt file under Assets
  • Select it in the Project window
  • Note that the importer used is TextTemplateImporter - that's us!
  • Any processing errors will be shown in the Console

Supporting the project

If this project saved you some time, and you'd like to see it continue to be invested in, consider buying me a coffee. β˜• I do this full-time, and every little bit helps! πŸ’™

About

T4 text template generative importer for Unity3D. πŸ“πŸ—

https://t4.faster-games.com

License:GNU General Public License v3.0


Languages

Language:C# 99.2%Language:PowerShell 0.8%Language:Shell 0.0%