Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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