Created
August 16, 2020 10:35
-
-
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
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
{ | |
"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