Skip to content

Instantly share code, notes, and snippets.

@Nrjwolf
Created August 16, 2020 10:35
Show Gist options
  • Save Nrjwolf/e5af61805d986214fe0fa3ed19a37816 to your computer and use it in GitHub Desktop.
Save Nrjwolf/e5af61805d986214fe0fa3ed19a37816 to your computer and use it in GitHub Desktop.
Unity Auto Attach Attributes Snippets for vs code https://github.com/Nrjwolf/unity-auto-attach-component-attributes
{
"FindObjectOfType attribute": {
"prefix": "findObjectOfTypeAttribute",
"body": [
"[FindObjectOfType] [SerializeField] private $COMPONENT m_$COMPONENT;",
"public $COMPONENT $COMPONENT { get => m_$COMPONENT; }"
],
"description": "https://github.com/Nrjwolf/unity-auto-attach-component-attributes"
},
"GetComponent ttribute": {
"prefix": "getComponentAttribute",
"body": [
"[GetComponent] [SerializeField] private $COMPONENT m_$COMPONENT;",
"public $COMPONENT $COMPONENT { get => m_$COMPONENT; }"
],
"description": "https://github.com/Nrjwolf/unity-auto-attach-component-attributes"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment