unity-supplements icon indicating copy to clipboard operation
unity-supplements copied to clipboard

Additional types and functionality

Unity Supplements

Changelog

2.6.0

  • Can define a USE_SYSTEM_HASHCODE symbol to change the behaviour of almost all GetHashCode methods

2.5.3

Breaking changes

  • Change the namespace of all pooling-related classes

Global

Extensions

  • Array1
  • Number
  • String

System

Delegate

  • ReadStructAction
  • ReadStructFunc
  • ReadStructPredicate
  • RefAction
  • RefFunc
  • RefPredicate

Interface

  • IComparableIn<T>
  • IComparableReadOnlyStruct<T>
  • IEquatableIn<T>
  • IEquatableReadOnlyStruct<T>

Index & Length

  • Index2
  • Index3
  • Index4
  • Index5
  • Length2
  • Length3
  • Length4
  • Length5

Array

  • ReadArray1<T>
  • ReadArray1<T> extensions

Enum

  • Enum<T>
  • EnumIndex
  • EnumLength
  • EnumRandomizer<T>

Singleton

  • Singleton
  • Singleton<T>

Pseudo Probability

  • PseudoProbability
  • PseudoProbability.PRD
  • PseudoProbability.IMath
  • PseudoProbability.IRandom

Range

  • IRange<T>
  • IRange<TValue, TEnumerator>
  • IRangeEnumerator<T>
  • ReadRange<T>
  • ReadRange<TValue, TEnumerator>
  • ByteRange
  • SByteRange
  • ShortRange
  • UShortRange
  • IntRange
  • UIntRange
  • LongRange
  • ULongRange
  • CharRange
  • EnumByteRange<T>
  • EnumSByteRange<T>
  • EnumShortRange<T>
  • EnumUShortRange<T>
  • EnumIntRange<T>
  • EnumUIntRange<T>
  • EnumLongRange<T>
  • EnumULongRange<T>
  • EnumRange<T>

Misc.

  • Converter

System.Delegates

  • IAction
  • IActionIn
  • IActionRef
  • IFunc
  • IFuncIn
  • IFuncRef
  • IPredicate
  • IPredicateIn
  • IPredicateRef

System.ValueDelegates

  • ValueAction
  • ValueFunc
  • ValuePredicate
  • ValueDelegate

System.IO

  • FileSystem

System.Runtime.Serialization

  • SerializationInfoExtensions

System.Runtime.Serialization.Formatters.Text

  • ITextFormatter
  • ITextFormatter<T>

System.Collections.Generics

Interface

  • IEqualityComparerIn<T>
  • IReadOnlyStructEqualityComparer<T>
  • IComparerIn<T>
  • IReadOnlyStructComparer<T>

Extensions

  • Collection<T>
  • IEnumerable<T>
  • IEnumerator<T>
  • List<T>
  • Dictionary<TKey, TValue>
  • Queue<T>
  • Stack<T>
  • HashSet<T>

Segment

  • ISegment<T>
  • ISegmentReader<T>
  • ISegmentSource<T>
  • Segment<T>
  • Segment1<T>
  • Array1Segment<T>
  • ListSegment<T>
  • StringSegment
  • SegmentReader<TSegment, TValue>
  • Extensions

Read-Only Collection

  • ReadCollection<T>
  • ReadDictionary<TKey, TValue>
  • ReadList<T>
  • ReadHashSet<T>
  • Extensions

Randomizer

  • Randomizer
  • Randomizer.IRandom
  • Randomizer.ICache<T>

Misc.

  • Values
  • Values<T>
  • EnumValues<T>
  • EqualityComparerIn<T>

System.Collections.ArrayBased

  • ArrayList<T>
  • ArrayList<T>.Collection
  • ArrayDictionary<TKey, TValue>
  • ArrayDictionary<TKey, TValue>.Collection
  • ReadArrayList<T>
  • ReadArrayDictionary<TKey, TValue>
  • Extensions

System.Collections.Pooling

  • IPool<T>
  • Pool<T>
  • IPoolProvider
  • IPoolProviderDecorator
  • Pool
  • Pool.DefaultProvider
  • DefaultProviderDecorator
  • Array1Pool<T>
  • ListPool<T>
  • DictionaryPool<TKey, TValue>
  • ArrayListPool<T>
  • ArrayDictionaryPool<TKey, TValue>
  • HashSetPool<T>
  • QueuePool<T>
  • StackPool<T>

System.Collections.Pooling.Concurrent

  • ConcurrentPool<T>
  • IConcurrentPoolProvider
  • IConcurrentPoolProviderDecorator
  • ConcurrentPool
  • ConcurrentPool.DefaultProvider
  • DefaultConcurrentProviderDecorator
  • Array1ConcurrentPool<T>
  • ListConcurrentPool<T>
  • DictionaryConcurrentPool<TKey, TValue>
  • ArrayListConcurrentPool<T>
  • ArrayDictionaryConcurrentPool<TKey, TValue>
  • HashSetConcurrentPool<T>
  • QueueConcurrentPool<T>
  • StackConcurrentPool<T>
  • ConcurrentBagPool<T>
  • ConcurrentDictionaryPool<TKey, TValue>
  • ConcurrentQueuePool<T>
  • ConcurrentStackPool<T>

System.Fluent

  • ObjectExtensions.FluentDelegates

System.Grid

  • GridIndex
  • GridIndexRange
  • GridIndexRange.Enumerator
  • GridRange
  • GridRange.Enumerator
  • SGridIndex
  • SGridIndexRange
  • SGridIndexRange.Enumerator
  • SGridRange
  • SGridRange.Enumerator
  • GridSize
  • ClampedGridSize
  • GridPartitioner
  • ClampedGridPartitioner
  • GridValue<T>
  • IGridValues<T>
  • IGridValueEnumerator<T>
  • IGridIndexedValues<T>
  • IGridIndexedValueEnumerator<T>
  • IReadOnlyGrid<T>
  • IGrid<T>
  • Grid<T>
  • Grid<T>.GridValues
  • Grid<T>.GridIndexedValues
  • ReadGrid<T>

System.Grid.ArrayBased

  • ArrayGrid<T>
  • ArrayGrid<T>.GridValues
  • ArrayGrid<T>.GridIndexedValues
  • ReadArrayGrid<T>

System.Table

  • IEntry
  • IGetId
  • ITable
  • Table
  • ReadEntry
  • ReadTable

UnityEngine

Collection

  • SerializableDictionary<TKey, TValue>

Singleton

  • SingletonBehaviour<T>

Extensions

  • BoundsExtensions
  • ColorExtensions
  • MatrixExtenions
  • QuaternionExtensions
  • RangeExtensions
  • RayExtensions
  • RectExtensions
  • ResolutionExtensions
  • VectorExtensions

Misc.

  • HSBColor
  • LEBColor
  • Offset
  • OffsetInt
  • ScreenResolution
  • ScreenResolution.Predefined
  • Size
  • SizeInt
  • SingleLayer
  • SortingLayerId
  • GridVector
  • SGridVector

Unity.Collections

  • ReadNativeArray<T>
  • ReadNativeSlice<T>
  • NativeArraySegment<T>
  • NativeSliceSegment<T>
  • Extensions

UnityEditor

  • SingleLayerDrawer
  • SortingLayerIdDrawer
  • GridVectorDrawer
  • SGridVectorDrawer