Skip to content

Release 2.0.0

Compare
Choose a tag to compare
@TeodorVecerdi TeodorVecerdi released this 29 Dec 17:59
· 25 commits to main since this release
8a908d5

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 and MaxClamped methods to MathExtensions
  • 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 OnFixedUpdate
    • AsyncUpdateManager.Sequential - asynchronous update manager, awaits every action one after the other
    • AsyncUpdateManager.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>