Last active
July 27, 2020 11:41
-
-
Save kamyker/50f4549c5ac6a7ee8dfc6519b19d24a5 to your computer and use it in GitHub Desktop.
VS snippets unity
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
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
</SnippetTypes> | |
<Title>db DebugLog</Title> | |
<Author> | |
</Author> | |
<Description> | |
</Description> | |
<HelpUrl> | |
</HelpUrl> | |
<Shortcut>db</Shortcut> | |
</Header> | |
<Snippet> | |
<Declarations> | |
<Literal Editable="true"> | |
<ID>variable</ID> | |
<ToolTip>variable</ToolTip> | |
<Default>variable</Default> | |
<Function> | |
</Function> | |
</Literal> | |
</Declarations> | |
<Code Language="csharp" Delimiter="$"><![CDATA[Debug.Log($$"$variable$: {$variable$}");$end$]]></Code> | |
</Snippet> | |
</CodeSnippet> | |
</CodeSnippets> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
</SnippetTypes> | |
<Title>scriptableobj</Title> | |
<Author> | |
</Author> | |
<Description> | |
</Description> | |
<HelpUrl> | |
</HelpUrl> | |
<Shortcut>scriptableobj</Shortcut> | |
</Header> | |
<Snippet> | |
<Declarations> | |
<Literal Editable="true"> | |
<ID>SpawnManagerScriptableObject</ID> | |
<ToolTip>SpawnManagerScriptableObject</ToolTip> | |
<Default>SpawnManagerScriptableObject</Default> | |
<Function> | |
</Function> | |
</Literal> | |
</Declarations> | |
<Code Language="csharp" Delimiter="$"><![CDATA[using UnityEngine; | |
[CreateAssetMenu(fileName = "$SpawnManagerScriptableObject$", menuName = "ScriptableObjects/$SpawnManagerScriptableObject$", order = 1)] | |
public class $SpawnManagerScriptableObject$ : ScriptableObject | |
{ | |
$end$ | |
}]]></Code> | |
</Snippet> | |
</CodeSnippet> | |
</CodeSnippets> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
</SnippetTypes> | |
<Title>sf SerializeField</Title> | |
<Author> | |
</Author> | |
<Description> | |
</Description> | |
<HelpUrl> | |
</HelpUrl> | |
<Shortcut>sf</Shortcut> | |
</Header> | |
<Snippet> | |
<Declarations> | |
<Object Editable="true"> | |
<ID>type</ID> | |
<ToolTip>type</ToolTip> | |
<Default>type</Default> | |
<Function> | |
</Function> | |
<Type> | |
</Type> | |
</Object> | |
<Literal Editable="true"> | |
<ID>name</ID> | |
<ToolTip>name</ToolTip> | |
<Default>name</Default> | |
<Function> | |
</Function> | |
</Literal> | |
</Declarations> | |
<Code Language="csharp" Delimiter="$"><![CDATA[[SerializeField] $type$ $name$ ;$end$]]></Code> | |
</Snippet> | |
</CodeSnippet> | |
</CodeSnippets> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment