Last active
January 10, 2018 03:35
-
-
Save fadookie/c983b078028033d4b9b4 to your computer and use it in GitHub Desktop.
Some handy Create file templates for Unity 5.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace ExampleNamespace | |
{ | |
public class #SCRIPTNAME# | |
{ | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace ExampleNamespace | |
{ | |
public interface #SCRIPTNAME# | |
{ | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | |
{ | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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