https://github.com/bluepixeldev/utilkit
A simple unity plugin containing helpfull utility functions, classes and more.
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.4%) to scientific vocabulary
Keywords
Repository
A simple unity plugin containing helpfull utility functions, classes and more.
Basic Info
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Utilkit
Utilkit is a collection of helpful utilities for Unity development. It includes a variety of helper functions and extensions for Vector3, Vector2, and more, as well as utilities for drawing gizmos and handling null checks.
Features
- Vector3 Utilities: Extensions for basic vector operations like setting individual axes, adding, subtracting, and math functions (multiply, divide, clamp, etc.)
- Null Check Utilities: Simplified methods for checking and invoking actions on objects that are either null or not null.
- Gizmos Utilities: Tools to draw 2D and 3D shapes (e.g., circles, squares, cones, cylinders) using Gizmos in the Unity editor.
Installation
Method 1: Unity Package Manager (UPM)
To use Utilkit, add the following to your Packages/manifest.json:
json
{
"dependencies": {
"com.bluepixel.utilkit": "https://github.com/bluepixeldev/utilkit.git"
}
}
`
Method 2: Manual Download
- Download the repository as a ZIP file or clone it.
- Add the contents of the
BP.Utilkitfolder to your Unity project'sAssetsdirectory.
Usage
You can start using the utilities in your project by including the namespaces:
csharp
using BP.Utilkit;
Example Usage:
Vector3 Utilities:
csharp
Vector3 v = new Vector3(1, 2, 3);
v = v.SetX(5);
v = v.Add(new Vector2(1, 1));
v = v.Mul(2);
Null Check Utilities:
csharp
myObject.WithNotNull(obj => obj.DoSomething());
myObject.WithNull(() => Debug.Log("Object is null"));
Gizmos Utilities:
csharp
void OnDrawGizmos() {
Gizmos2D.DrawWireCircle(transform.position, 2);
GizmoUtil.DrawCylinder(transform.position, 1, 5);
}
Documentation
Detailed documentation is available in the GitHub Wiki.
Contributing
Contributions are welcome! Feel free to submit issues and pull requests.
- Fork the repository.
- Create your feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add new feature'). - Push to the branch (
git push origin feature/AmazingFeature). - Open a pull request.
Owner
- Name: BluePixel
- Login: BluePixelDev
- Kind: user
- Location: Czech Republic
- Repositories: 2
- Profile: https://github.com/BluePixelDev
A game dev. working on an FPS/Roguelike game, Re-Take. Set in the near future, the internet is under attack of a virus. Only you can stop it and regain control.
GitHub Events
Total
- Watch event: 1
- Push event: 4
- Gollum event: 40
Last Year
- Watch event: 1
- Push event: 4
- Gollum event: 40
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| OndrejKacirek | b****v@g****m | 5 |
Issues and Pull Requests
Last synced: 9 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- com.bluepixel.utilkit file: