Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qwe321qwe321qwe321/unity-scripttemplates
The script templates and namespace filler of Unity. It is just a backup for personal use.
https://github.com/qwe321qwe321qwe321/unity-scripttemplates
Last synced: 18 days ago
JSON representation
The script templates and namespace filler of Unity. It is just a backup for personal use.
- Host: GitHub
- URL: https://github.com/qwe321qwe321qwe321/unity-scripttemplates
- Owner: qwe321qwe321qwe321
- Created: 2020-07-10T03:31:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-08T08:11:44.000Z (8 months ago)
- Last Synced: 2024-10-11T10:14:42.769Z (about 1 month ago)
- Language: C#
- Size: 37.1 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unity-ScriptTemplates
There are some script templates and the namespace filler script for Unity.It is just a backup for personal use and it's a constant work in progress.
---
### UsageThere are two ways to use this repo:
1. Download and put `Assets/ScriptTemplates` folder into `Assets/` and restart Unity Editor.
2. By git submodule:
```
cd
git submodule add -b submodule https://github.com/qwe321qwe321qwe321/Unity-ScriptTemplates.git Assets/ScriptTemplates
git submodule update --init
```### Result
![Demo](./screenshot1.png)
### Namespace Filler
By default, it will fill in a namespace automatically by the path of script that you created.
Examples:
* `Assets/Pedev/Example/Scripts/Foo.cs` -> `Pedev.Example`
* `Assets/Pedev/ExampleEditor/Editor/Foo.cs` -> `Pedev.ExampleEditor`You can rewrite the namespace rule in `ScriptTemplates/NamespaceFiller.cs`.