All Projects → deniszykov → t4-templates-unity3d

deniszykov / t4-templates-unity3d

Licence: other
T4 Text Template Processor for Unity3D

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to t4-templates-unity3d

UnityDebug
A wrapper script for Unity debug calls to use conditional attributes in order to avoid debug code being compiled into release builds.
Stars: ✭ 29 (-61.33%)
Mutual labels:  unity-editor, unity-asset, unity3d-plugin
TsukiSuite
A toolsuite created to make Unity development easier
Stars: ✭ 23 (-69.33%)
Mutual labels:  unity-editor, unity-asset, unity3d-plugin
Awesome Unity Open Source On Github
A categorized collection of awesome Unity open source on GitHub (800+)
Stars: ✭ 1,124 (+1398.67%)
Mutual labels:  unity-editor, unity-asset, unity3d-plugin
UnityGlobalTextSystem
Allow the user to 'change' the default font in Unity from "Arial" to a font of their liking.
Stars: ✭ 21 (-72%)
Mutual labels:  unity-editor, unity-asset, unity3d-plugin
ar-simulation
AR Simulation for Unity • Right in the Editor • Minimally Invasive
Stars: ✭ 101 (+34.67%)
Mutual labels:  unity-editor, unity-asset, unity3d-plugin
Unity Script Collection
A maintained collection of useful & free unity scripts / library's / plugins and extensions
Stars: ✭ 3,640 (+4753.33%)
Mutual labels:  unity-editor, unity-asset, unity3d-plugin
Ma textureatlasser
Texture atlas creator for Unity
Stars: ✭ 116 (+54.67%)
Mutual labels:  unity-editor, unity3d-plugin
Unity Bitmapfontimporter
An unity editor extension for bitmap font.
Stars: ✭ 139 (+85.33%)
Mutual labels:  unity-editor, unity3d-plugin
Unity-2017.2-and-Vuforia-6.5---Camera-Auto-Focus
Unity 2017.2 and Vuforia 6.5 Augmented Reality (AR) Camera Auto Focus
Stars: ✭ 17 (-77.33%)
Mutual labels:  unity-asset, unity3d-plugin
UnityHexagonLibrary2d
A library to manage 2D hexagonal tiles in Unity.
Stars: ✭ 58 (-22.67%)
Mutual labels:  unity-asset, unity3d-plugin
download.unity.com
Unity Download http://unity3d.com/unity/download/archive
Stars: ✭ 90 (+20%)
Mutual labels:  unity-editor, unity3d-plugin
awesome-unity
A curated list of awesome Unity games! 🎮
Stars: ✭ 346 (+361.33%)
Mutual labels:  unity-editor, unity3d-plugin
Unigit
An open source GIT Unity3D editor plugin.
Stars: ✭ 111 (+48%)
Mutual labels:  unity-editor, unity-asset
Extosc
extOSC is a tool dedicated to simplify creation of applications in Unity with OSC protocol usage.
Stars: ✭ 69 (-8%)
Mutual labels:  unity-editor, unity3d-plugin
PATCH
The PATCH repository for issues tracking, wiki and shared material.
Stars: ✭ 34 (-54.67%)
Mutual labels:  unity-asset, unity3d-plugin
Unity Assetpipeline Presentation
Unity project for "A Technical Deep-Dive into Unity's Asset Pipeline" presented at Develop: 2018
Stars: ✭ 31 (-58.67%)
Mutual labels:  unity-editor, unity-asset
Webview-unity-3d-2017.3-or-higher-
Webview unity 3d 2017.3 or higher - can be open website url on unity3d or open Html5, html and js on unity offline
Stars: ✭ 18 (-76%)
Mutual labels:  unity-asset, unity3d-plugin
Unity-IMGUI-TreeView
Simple Tree View implementation for IMGUI (Editor GUI) in Unity. Includes a special type for working with asset paths, but base data structure and view can be easily extended to support anything.
Stars: ✭ 73 (-2.67%)
Mutual labels:  unity-editor, unity3d-plugin
Ugui Editor
Unity UGUI editor tools,improve the efficiency of ui development.
Stars: ✭ 479 (+538.67%)
Mutual labels:  unity-editor, unity3d-plugin
Unity Quicksheet
Unity-QuickSheet enables you to use spreadsheet file data within Unity editor.
Stars: ✭ 742 (+889.33%)
Mutual labels:  unity-editor, unity3d-plugin

Introduction

This Unity editor extension provides T4 text templates processor. T4 template is a mixture of text blocks and control logic that can generate a text file. The control logic is written as fragments of program code in C#. The generated file can be text of any kind, such as resource file, source code or web page.

T4 template example:

<html><body>
 The date and time now is: <#= DateTime.Now #>
</body></html>

Use cases

How to use

Create or copy file with .tt extension. Select this file in Project window (Window -> Project), then in Inspector window (Window -> Inspector) setup T4 template's parameters. Click "Generate" button. Inspector window for T4 template contains following parameters:

  • Output Type - type of generated file
    • Text - normal template's output. It corresponds to "Design-time T4 text templates" in Microsoft's terminology.
    • Text Generator - generator-class which can generate content when TransformText() is called. It corresponds to "Run time T4 text templates" in Microsoft's terminology.
  • Output Path - path to generated file. If not specified, generated file will have file name of template and file extension from output directive.
  • Auto-Gen Triggers - list of events which trigger auto-generation.
    • Code Compilation - after each code compilation
    • Asset Changes - after watched assets are changed, look for Assets to Watch
  • Auto-Gen Delay (Ms) - delay before triggered auto-generation starts
  • Assets to Watch - list of assets and folders which trigger auto-generation

Details

T4 template can use hostspecific=true property to access Host.ResolvePath method, which maps path relatively to template's location.

By default UnityEngine.dll and UnityEditor.dll assemblies are referenced in all templates. You can reference project's assemblies Assembly-CSharp and Assembly-CSharp-firstpass by adding assembly directive:

<#@ assembly name="Assembly-CSharp" #>
<#@ assembly name="Assembly-CSharp-firstpass" #>

Target Runtime

The template always uses the current runtime and core libraries of Unity Editor.

Language Version

You could specify C# language version with language= directive. List of available language versions:

  • language="C#v3.5" - C# version 3.5.
  • language="C#" - C# up to version 6, depending on Unity Editor's version.
  • language="C#/Unity" - C# version based on Roslyn shipped with Unity Editor.
  • unspecified - It is currently the equivalent of "C#/Unity".

MSBuild Macros are not available.

You can run template generation from your code with UnityTemplateGenerator.RunForTemplate(templatePath) call.

Version 2.0.0

there is some breaking changes due renaming in this version

Version 1.0.7

fixed missing 's' in project name 'TextTran_S_form', files, namespaces, folders has been renamed. executable name of tools has been changed to 'GameDevWare.TextTransform.exe' new NuGet package will be published

Contacts

Please send any questions at [email protected]

License

Asset Store Terms of Service and EULA

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].