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.unitycommons
todev.vecerdi.unitycommons
- Added
Clamped
andClamped01
extensions forVector3
s - Added a MonoSingleton variant which automatically creates an instance if one can't be found
- Added
Run.NextUpdate
method - Removed
Code
directory - 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_PATH
Release 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
Bar
script - Removed NaughtyAttributes dependency
- Removed instantiation fallback when a MonoSingleton doesn't exist
Added
- Added
IsInitialized
boolean property to MonoSingleton - Added
MinClamped
andMaxClamped
methods toMathExtensions
- Added
MapRange
for 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
Create
abstract 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
QuickSort
methods 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
EveryTicks
method to Run utility - Add Logging extensions with context parameter
- Add
IReadOnlyList
variant toRand.ListItem
- Change type constraint on MonoSingleton to enforce self-reference
- Change
Clamped
extension to swap min and max when appropriate - Rename
Grid
toGridXY
to avoid naming collision with built-in type - Rename
GenericExtensions
toObjectExtensions
- Remove deprecated
UpdateUtility
Install using ![](https://camo.githubusercontent.com/8c1de18ed3b077cf297e3997a77580b1591a62d0c77e4f45e6b340cad8b319e6/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f636f6d2e6769746875622e74656f646f72766563657264692e756e697479636f6d6d6f6e733f6c6162656c3d6f70656e75706d2672656769737472795f7572693d68747470733a2f2f7061636b6167652e6f70656e75706d2e636f6d)
Run the following on the command line in your unity project's folder:
openupm add com.github.teodorvecerdi.unitycommons
Hotfix 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
RoundedTo
math extensions (Round a value to the nearest multiple of a number) - Added
Wrapped
math extensions (Wrap a value between a range) - Added generic
Debug.Log(/Warning/Error)
extensions - Added
Run
utility with methods for running an action every frame, everyx
seconds, or once afterx
seconds - Made UpdateUtility obsolete
Install using ![](https://camo.githubusercontent.com/8c1de18ed3b077cf297e3997a77580b1591a62d0c77e4f45e6b340cad8b319e6/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f636f6d2e6769746875622e74656f646f72766563657264692e756e697479636f6d6d6f6e733f6c6162656c3d6f70656e75706d2672656769737472795f7572693d68747470733a2f2f7061636b6167652e6f70656e75706d2e636f6d)
Run the following on the command line in your unity project's folder:
openupm add com.github.teodorvecerdi.unitycommons
Version 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 ![](https://camo.githubusercontent.com/8c1de18ed3b077cf297e3997a77580b1591a62d0c77e4f45e6b340cad8b319e6/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f636f6d2e6769746875622e74656f646f72766563657264692e756e697479636f6d6d6f6e733f6c6162656c3d6f70656e75706d2672656769737472795f7572693d68747470733a2f2f7061636b6167652e6f70656e75706d2e636f6d)
Run the following on the command line in your unity project's folder:
openupm add com.github.teodorvecerdi.unitycommons
Version 1.4.3
Changelog
1.4.2
- Slight optimization in ListExtensions (
ForEach
) - Added
(int, int)
tuple range check - Removed float range checks (
Between
already 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
Map
functions
1.4.3
- Fixed bug in
ForEach
list extension - Another slight optimization in ListExtensions (
RemoveDuplicates
)
Install using ![](https://camo.githubusercontent.com/8c1de18ed3b077cf297e3997a77580b1591a62d0c77e4f45e6b340cad8b319e6/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f636f6d2e6769746875622e74656f646f72766563657264692e756e697479636f6d6d6f6e733f6c6162656c3d6f70656e75706d2672656769737472795f7572693d68747470733a2f2f7061636b6167652e6f70656e75706d2e636f6d)
Run the following on the command line in your unity project's folder:
openupm add com.github.teodorvecerdi.unitycommons
Release 1.4.1
Changelog
- Added useless boolean extensions (
And
,Or
,AndNot
,OrNot
) and function versions + generic - Added 3D versions of
MouseWorld
andScreenToWorld
as the previous ones were basically 2D versions. - Added debug options to grid class (controls font size for text and debug line duration)
Install using ![](https://camo.githubusercontent.com/8c1de18ed3b077cf297e3997a77580b1591a62d0c77e4f45e6b340cad8b319e6/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f636f6d2e6769746875622e74656f646f72766563657264692e756e697479636f6d6d6f6e733f6c6162656c3d6f70656e75706d2672656769737472795f7572693d68747470733a2f2f7061636b6167652e6f70656e75706d2e636f6d)
Run the following on the command line in your unity project's folder:
openupm add com.github.teodorvecerdi.unitycommons