Releases: TeodorVecerdi/UnityCommons
Releases · TeodorVecerdi/UnityCommons
Release 2.1.5
Release 2.1.5
Full Changelog: 2.1.3...2.1.5
- Changed package name from
com.github.teodorvecerdi.unitycommonstodev.vecerdi.unitycommons - Added
ClampedandClamped01extensions forVector3s - Added a MonoSingleton variant which automatically creates an instance if one can't be found
- Added
Run.NextUpdatemethod - Removed
Codedirectory - Fixed a few issues
Install as a submodule
Run the following on the command line in your unity project's folder:
git submodule add https://github.com/TeodorVecerdi/UnityCommons.git DESTINATION_PATHRelease 2.1.3
Release 2.1.3
Full Changelog: 2.0.1...2.1.3
- Added generic
ObjectPool<T>abstract class for object pooling - Fixed async update managers not showing up in Unity as components (Renamed classes from
AsyncUpdateManager.(Sequential/Parallel)to(Sequential/Parallel)AsyncUpdateManager) - Cleaned up files, trimmed leading whitespace, converted tabs to spaces
Install as a submodule
Run the following on the command line in your unity project's folder:
git submodule add https://github.com/TeodorVecerdi/UnityCommons/ <DESTINATION_PATH>Hotfix 2.0.1
Hotfix 2.0.1
Full Changelog: 2.0.0...2.0.1
- Removed usages of newer C# to make project compatible with Unity 2019.4 LTS
Install as a submodule
Run the following on the command line in your unity project's folder:
git submodule add https://github.com/TeodorVecerdi/UnityCommons/ <DESTINATION_PATH>Release 2.0.0
Changelog
Full Changelog: 1.6.0...2.0.0
Removed
- Removed
Barscript - Removed NaughtyAttributes dependency
- Removed instantiation fallback when a MonoSingleton doesn't exist
Added
- Added
IsInitializedboolean property to MonoSingleton - Added
MinClampedandMaxClampedmethods toMathExtensions - Added
MapRangefor integers - Added
Rand.ColorHSV(identical to Unity's Random.ColorHSV) - Added two variants for a non-MonoBehaviour singleton (one requires a parameterless constructor, and one has a
Createabstract method)Singleton.New<T>Singleton.Create<T>
- Added update managers for having access to unity's update lifecycle outside of MonoBehaviours. Has 3 variants:
UpdateManager- regular update manager, has events for OnUpdate, OnLateUpdate, and OnFixedUpdateAsyncUpdateManager.Sequential- asynchronous update manager, awaits every action one after the otherAsyncUpdateManager.Parallel- asynchronous update manager, starts every action at the same time and waits for all to finish
Changed
- Optimized
QuickSortmethods to stop allocating a whole new list when calling
Install as a submodule
Run the following on the command line in your unity project's folder:
git submodule add https://github.com/TeodorVecerdi/UnityCommons/ <DESTINATION_PATH>Release 1.6.0
Changelog
- Add
EveryTicksmethod to Run utility - Add Logging extensions with context parameter
- Add
IReadOnlyListvariant toRand.ListItem - Change type constraint on MonoSingleton to enforce self-reference
- Change
Clampedextension to swap min and max when appropriate - Rename
GridtoGridXYto avoid naming collision with built-in type - Rename
GenericExtensionstoObjectExtensions - Remove deprecated
UpdateUtility
Install using 
Run the following on the command line in your unity project's folder:
openupm add com.github.teodorvecerdi.unitycommonsHotfix 1.5.1
Version 1.5.0
Changelog
- Removed TextMeshPro dependency
- Changed minimum required Unity version to 2019.4 LTS
- Fixed incompatibilities with Unity 2019.4
- Added
RoundedTomath extensions (Round a value to the nearest multiple of a number) - Added
Wrappedmath extensions (Wrap a value between a range) - Added generic
Debug.Log(/Warning/Error)extensions - Added
Runutility with methods for running an action every frame, everyxseconds, or once afterxseconds - Made UpdateUtility obsolete
Install using 
Run the following on the command line in your unity project's folder:
openupm add com.github.teodorvecerdi.unitycommonsVersion 1.4.4
Changelog
- Changed behaviour of removing functions in UpdateUtility to queue functions and remove them at the end of the update cycle. This allows functions to remove themselves from within themselves.
Install using 
Run the following on the command line in your unity project's folder:
openupm add com.github.teodorvecerdi.unitycommonsVersion 1.4.3
Changelog
1.4.2
- Slight optimization in ListExtensions (
ForEach) - Added
(int, int)tuple range check - Removed float range checks (
Betweenalready exists) - Added more debug options and control in Grid classes
- Removed useless float extensions (because of generic extensions that covered them)
- Added int, decimal, and double versions of
Clamped01 - Removed some
Mapfunctions
1.4.3
- Fixed bug in
ForEachlist extension - Another slight optimization in ListExtensions (
RemoveDuplicates)
Install using 
Run the following on the command line in your unity project's folder:
openupm add com.github.teodorvecerdi.unitycommonsRelease 1.4.1
Changelog
- Added useless boolean extensions (
And,Or,AndNot,OrNot) and function versions + generic - Added 3D versions of
MouseWorldandScreenToWorldas the previous ones were basically 2D versions. - Added debug options to grid class (controls font size for text and debug line duration)
Install using 
Run the following on the command line in your unity project's folder:
openupm add com.github.teodorvecerdi.unitycommons