mirror of
https://github.com/maxartz15/Validator.git
synced 2024-11-23 20:45:34 +01:00
Update README.md
This commit is contained in:
parent
74fd067220
commit
9c01bed215
BIN
Documentation~/Images/ValidatorWindow_01.png
Normal file
BIN
Documentation~/Images/ValidatorWindow_01.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
21
README.md
21
README.md
@ -1,12 +1,11 @@
|
|||||||
# Validator
|
# Validator
|
||||||
|
|
||||||
|
![ValidatorWindow](Documentation~/Images/ValidatorWindow_01.png)
|
||||||
|
|
||||||
Unity project validator framework.
|
Unity project validator framework.
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
Open Validator Window:
|
Add a custom validate check using the `IValidatable` interface:
|
||||||
> Window -> General -> Validator
|
|
||||||
|
|
||||||
Add validatable:
|
|
||||||
```C#
|
```C#
|
||||||
using Validator;
|
using Validator;
|
||||||
|
|
||||||
@ -28,13 +27,21 @@ public class MyBehaviour : MonoBehaviour, IValidatable
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Add a validate check using `[Required]` attribute:
|
||||||
|
```C#
|
||||||
|
[SerializeField, Required] private GameObject playerPrefab = null; // If someone forgets to assign it, it would be invalid.
|
||||||
|
```
|
||||||
|
|
||||||
|
Open Validator Window:
|
||||||
|
> Window -> General -> Validator
|
||||||
|
|
||||||
|
Run the validator:
|
||||||
|
> Click the 'run/play' button and wait for the report to be generated.
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
[Installing from a Git URL](https://docs.unity3d.com/Manual/upm-ui-giturl.html)
|
[Installing from a Git URL](https://docs.unity3d.com/Manual/upm-ui-giturl.html)
|
||||||
|
|
||||||
[Unitypackage](https://github.com/COMPANYNAME/PACKAGENAME/releases)
|
|
||||||
|
|
||||||
|
|
||||||
## LICENSE
|
## LICENSE
|
||||||
|
|
||||||
Overall package is licensed under [MIT](/LICENSE.md), unless otherwise noted in the [3rd party licenses](/THIRD%20PARTY%20NOTICES.md) file and/or source code.
|
Overall package is licensed under [MIT](/LICENSE.md), unless otherwise noted in the [3rd party licenses](/THIRD%20PARTY%20NOTICES.md) file and/or source code.
|
Loading…
Reference in New Issue
Block a user