Skip to content

Instantly share code, notes, and snippets.

@float1251
Created July 12, 2016 00:53
Show Gist options
  • Save float1251/f09d579ae5ac926e51e6b89cbaddc3f4 to your computer and use it in GitHub Desktop.
Save float1251/f09d579ae5ac926e51e6b89cbaddc3f4 to your computer and use it in GitHub Desktop.
visual studioで使用する、Unity SerializeFieldのsnippet
<CodeSnippet Format="1.0.0">
<Header>
<Title>serialize_field</Title>
<Shortcut>sfield</Shortcut>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>type</ID>
<Default>int</Default>
</Literal>
<Literal>
<ID>name</ID>
<Default>name</Default>
</Literal>
</Declarations>
<Code Language="CSharp">
[SerializeField]
$type$ $name$;
</Code>
</Snippet>
</CodeSnippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment