Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.

---
### Usage

There 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`.