Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/annulusgames/unity-script-templates
A collection of script templates for Unity
https://github.com/annulusgames/unity-script-templates
templates unity
Last synced: 12 days ago
JSON representation
A collection of script templates for Unity
- Host: GitHub
- URL: https://github.com/annulusgames/unity-script-templates
- Owner: AnnulusGames
- License: mit
- Created: 2023-09-23T09:16:24.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-17T10:30:49.000Z (12 months ago)
- Last Synced: 2024-10-11T10:34:01.981Z (28 days ago)
- Topics: templates, unity
- Homepage:
- Size: 32.2 KB
- Stars: 33
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# unity-script-templates
This repository is a collection of script templates for Unity. It includes numerous templates that are tailored to Unity features, reducing the effort required when creating new script files.
[日本語版READMEはこちら](README_JA.md)
## Setup
There are two methods to add custom script templates to your editor.
### 1. Add ScriptTemplates to your project
To introduce script templates into each project, follow these steps:
1. Download the unitypackage file and double click to import it.
2. Restart the editor. A restart is necessary to reflect the templates in the MenuItem.
3. You can access the templates from the Create menu in the Project window.The `ScriptTemplates` folder must be placed directly under the Assets folder and should not be moved.
### 2. Add ScriptTemplates to Unity Editor
You can also add ScriptTemplates directly to the Unity Editor executable.
1. Ensure that the editor is not running.
2. Open the `ScriptTemplates` folder within Unity's folder.
3. Download the template files and add them to Unity's `ScriptTemplates` folder.
4. When you open the editor, you can access the templates from the Create menu in the Project window.The `ScriptTemplates` folder is located in the following locations:
Windows: `\Unity\Editor\Data\Resources\ScriptTemplates`
Mac: `/Unity.app/Contents/Resources/ScriptTemplates`You will need to add them again if you change the editor version. Templates with the same name in the `Assets/ScriptTemplates` folder take priority.
## Templates
| Templates |
| - |
| C# |
| C# Class |
| C# Struct |
| C# Interface |
| - |
| General |
| MonoBehaviour |
| ScriptableObject |
| - |
| Editor |
| Editor |
| EditorWindow |
| PropertyDrawer |
| Editor (UIToolkit) |
| EditorWindow (UIToolkit) |
| PropertyDrawer (UIToolkit) |
| - |
| ECS |
| ComponentData |
| System (ISystem) |
| System (SystemBase) |
| Authoring |
| - |
| Text Files |
| Text |
| Json |
| Xml |
| Markdown |
| - |
| Others |
| Package Manifest |## Contribute
If you'd like to propose the addition of templates, fork this repository and submit a pull request.
## License
[MIT License](LICENSE)