-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
72 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,72 @@ | ||
# UnityScriptDefaultTemplates | ||
Rimuru Script Default Templates for Unity | ||
# RimuruDev [Unity Script Default Templates] | ||
|
||
# For what? | ||
- Facilitates routine work. Now there is no need to constantly clean up excess garbage in the standard Unity script. All frequently used constructions are now created in one click! | ||
|
||
# Install | ||
- Import this .unitypackage to your Unity project. | ||
- Click Import all. | ||
- Restart the unity project. | ||
- Done! | ||
|
||
![image](https://user-images.githubusercontent.com/85500556/209578330-0f5ba7fb-ef71-4b88-a953-31c132907b23.png) | ||
|
||
# How to use? | ||
- After installing this package, right-click in any folder and create a script. | ||
- There are four ready-made script templates. | ||
|
||
1. Default Unity script: | ||
|
||
![image](https://user-images.githubusercontent.com/85500556/209578013-b822fd05-ac6c-4908-a503-c8a65aa7808a.png) | ||
|
||
```csharp | ||
using UnityEngine; | ||
|
||
public sealed class NewScript : MonoBehaviour | ||
{ | ||
|
||
} | ||
``` | ||
|
||
2. Interface: | ||
|
||
![image](https://user-images.githubusercontent.com/85500556/209577961-7d83a4ab-7d92-4241-bdfa-05e612787b4f.png) | ||
|
||
|
||
```csharp | ||
using UnityEngine; | ||
|
||
public interface NewInterface | ||
{ | ||
|
||
} | ||
``` | ||
|
||
3. Serializable Struct: | ||
|
||
![image](https://user-images.githubusercontent.com/85500556/209577996-67ff816e-b853-49a5-baea-b70dd4e94dd7.png) | ||
|
||
|
||
```csharp | ||
using UnityEngine; | ||
|
||
[System.Serializable] | ||
public struct NewStruct | ||
{ | ||
|
||
} | ||
``` | ||
|
||
4. Serializable Class: | ||
|
||
![image](https://user-images.githubusercontent.com/85500556/209578090-c14e48e1-51f2-4246-82b4-f39643deea14.png) | ||
|
||
```csharp | ||
using UnityEngine; | ||
|
||
[System.Serializable] | ||
public sealed class NewClass | ||
{ | ||
|
||
} | ||
``` |