njannink / T4ForUnity

Unity Editor post processor who will related the T4 template to its generated (C#) file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unity T4 Template Post Processor

Unity Editor post processor who will related the T4 template to its generated (C#) file.

Editor call-back

Remarks

Need to put this file in an editor subfolder to make sure Unity will pick it up.

Can also be triggered manually through the Assets context menu.

Assets context menu

Solution

  • For editor assembly support: replace the string "Assembly-CSharp.csproj" with "Assembly-CSharp*.csproj".
  • For runtime text templates: modify the content of the string from TextTemplatingFileGenerator to TextTemplatingFilePreprocessor.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Unity Editor post processor who will related the T4 template to its generated (C#) file.

License:MIT License


Languages

Language:C# 100.0%