Unity Scripting Utils | Github repo
A set of useful and general purposed scripts/extensions I use in my projects; gathered on a repository.
a collection of scripts to enhance and speed up unity development.
import scripts swiftly by the downloadable UnityPackage on releases
https://github.com/payam-ranjbar/Unity-Scripting-Utils
Extensions
Collection Extensions
- append to dictionaries
- create dictionaries form lists with key predicates
- etc.
Vector Extensions
- useful arithmetical and mathematical operations on vectors
Color Extensions
- common and repetitive operations on unity Color class
Unity Extensions
- comparing gameObjects and Colliders layer like tags
Probability Toolkit
- Extensions
- Choose Random Object(s) from a collection
- Get a Random number in a vector2 boundaries
- Get a biased random number in a range (exponential)
- Flip a coin
- etc.
- Weighted Randoms
- Get a random object with chance weights
Inventory System
a general-purpose inventory system to store none stackable and consumable items