Skip to content

Instantly share code, notes, and snippets.

@fadookie
Last active January 10, 2018 03:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fadookie/c983b078028033d4b9b4 to your computer and use it in GitHub Desktop.
Save fadookie/c983b078028033d4b9b4 to your computer and use it in GitHub Desktop.
Some handy Create file templates for Unity 5.2
namespace ExampleNamespace
{
public class #SCRIPTNAME#
{
}
}
namespace ExampleNamespace
{
public interface #SCRIPTNAME#
{
}
}
using NUnit.Framework;
namespace ExampleNamespace
{
[TestFixture]
internal class #SCRIPTNAME#
{
[TestFixtureSetUp]
public void SetUpFixture()
{
}
[TestFixtureTearDown]
public void TearDownFixture()
{
}
[SetUp]
public void SetUp()
{
}
[TearDown]
public void TearDown()
{
}
[TestCase]
public void NewTest()
{
}
}
}
Drop these in:
/Applications/Unity.app/Contents/Resources/ScriptTemplates (Mac)
Program Files (x86)/Unity/Editor/Data/Resources/ScriptTemplates (Win)
/opt/Unity/Editor/Data/Resources/ScriptTemplates (Linux)
and restart Unity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment