Dispose Method
- Namespace
- SatorImaging.UnityFundamentals
Dispose<T>(ref T, float)
public static void Dispose<T>(ref T obj, float t = 0) where T : UnityEngine.Object
NOTE: Do nothing when obj is null or Transform component.
Parameters
obj
Tt
float
Type Parameters
T
Dispose(ref Transform, float)
Obsolete
[Obsolete("Disposing Transform does nothing. Use DisposeGameObject() instead.", true)]
public static void Dispose(ref Transform transform, float t = 0)
Parameters
transform
Transformt
float
Dispose(Transform?[], float)
Obsolete
[Obsolete("Disposing Transform does nothing. Use DisposeGameObject() instead.", true)]
public static void Dispose(Transform?[] array, float t = 0)
Parameters
array
Transform?[]t
float
Dispose(ref Transform?[], float)
Obsolete
[Obsolete("Disposing Transform does nothing. Use DisposeGameObject() instead.", true)]
public static void Dispose(ref Transform?[] array, float t = 0)
Parameters
array
Transform?[]t
float
Dispose(List<Transform?>, float)
Obsolete
[Obsolete("Disposing Transform does nothing. Use DisposeGameObject() instead.", true)]
public static void Dispose(List<Transform?> list, float t = 0)
Parameters
Dispose(ref List<Transform?>, float)
Obsolete
[Obsolete("Disposing Transform does nothing. Use DisposeGameObject() instead.", true)]
public static void Dispose(ref List<Transform?> list, float t = 0)
Parameters
Dispose(ICollection<Transform?>, float)
Obsolete
[Obsolete("Disposing Transform does nothing. Use DisposeGameObject() instead.", true)]
public static void Dispose(ICollection<Transform?> collection, float t = 0)
Parameters
collection
ICollection<Transform?>t
float
Dispose(ref ICollection<Transform?>, float)
Obsolete
[Obsolete("Disposing Transform does nothing. Use DisposeGameObject() instead.", true)]
public static void Dispose(ref ICollection<Transform?> collection, float t = 0)
Parameters
collection
ICollection<Transform?>t
float
Dispose(IDictionary<Transform, Transform?>, float)
Obsolete
[Obsolete("Disposing Transform does nothing. Use DisposeGameObject() instead.", true)]
public static void Dispose(IDictionary<Transform, Transform?> dict, float t = 0)
Parameters
dict
IDictionary<Transform, Transform?>t
float
Dispose(ref IDictionary<Transform, Transform?>, float)
Obsolete
[Obsolete("Disposing Transform does nothing. Use DisposeGameObject() instead.", true)]
public static void Dispose(ref IDictionary<Transform, Transform?> dict, float t = 0)
Parameters
dict
IDictionary<Transform, Transform?>t
float
Dispose<T>(IDictionary<T, Transform?>, float)
Obsolete
[Obsolete("Disposing Transform does nothing. Use DisposeGameObject() instead.", true)]
public static void Dispose<T>(IDictionary<T, Transform?> dict, float t = 0)
Parameters
dict
IDictionary<T, Transform?>t
float
Type Parameters
T
Dispose<T>(ref IDictionary<T, Transform?>, float)
Obsolete
[Obsolete("Disposing Transform does nothing. Use DisposeGameObject() instead.", true)]
public static void Dispose<T>(ref IDictionary<T, Transform?> dict, float t = 0)
Parameters
dict
IDictionary<T, Transform?>t
float
Type Parameters
T
Dispose<T>(IDictionary<Transform, T?>, float)
Obsolete
[Obsolete("Disposing Transform does nothing. Use DisposeGameObject() instead.", true)]
public static void Dispose<T>(IDictionary<Transform, T?> dict, float t = 0)
Parameters
dict
IDictionary<Transform, T>t
float
Type Parameters
T
Dispose<T>(ref IDictionary<Transform, T?>, float)
Obsolete
[Obsolete("Disposing Transform does nothing. Use DisposeGameObject() instead.", true)]
public static void Dispose<T>(ref IDictionary<Transform, T?> dict, float t = 0)
Parameters
dict
IDictionary<Transform, T>t
float
Type Parameters
T
Dispose<T>(ref T?[], float)
public static void Dispose<T>(ref T?[] array, float t = 0) where T : UnityEngine.Object
Dispose objects in collection and collection together.
Parameters
array
T[]t
float
Type Parameters
T
Dispose<T>(T?[], float)
public static void Dispose<T>(T?[] array, float t = 0) where T : UnityEngine.Object
For readonly collection to dispose only elements.
Use ref overload instead to dispose elements and collection together.
Parameters
array
T[]t
float
Type Parameters
T
Dispose<T>(ref List<T?>, float)
public static void Dispose<T>(ref List<T?> list, float t = 0) where T : UnityEngine.Object
Dispose objects in collection and collection together.
Parameters
Type Parameters
T
Dispose<T>(List<T?>, float)
public static void Dispose<T>(List<T?> list, float t = 0) where T : UnityEngine.Object
For readonly collection to dispose only elements.
Use ref overload instead to dispose elements and collection together.
Parameters
Type Parameters
T
Dispose<T>(ref ICollection<T?>, float)
public static void Dispose<T>(ref ICollection<T?> collection, float t = 0) where T : UnityEngine.Object
Dispose objects in collection and collection together.
Parameters
collection
ICollection<T>t
float
Type Parameters
T
Dispose<T>(ICollection<T?>, float)
public static void Dispose<T>(ICollection<T?> collection, float t = 0) where T : UnityEngine.Object
For readonly collection to dispose only elements.
Use ref overload instead to dispose elements and collection together.
Parameters
collection
ICollection<T>t
float
Type Parameters
T
Dispose<TKey, TValue>(ref IDictionary<TKey, TValue?>, float)
public static void Dispose<TKey, TValue>(ref IDictionary<TKey, TValue?> dict, float t = 0)
Dispose objects in collection and collection together.
Parameters
dict
IDictionary<TKey, TValue>t
float
Type Parameters
TKey
TValue
Remarks
Dispose()
will be called if TKey
and/or TValue
implements IDisposable.
Dispose<TKey, TValue>(IDictionary<TKey, TValue?>, float)
public static void Dispose<TKey, TValue>(IDictionary<TKey, TValue?> dict, float t = 0)
For readonly collection to dispose only elements.
Use ref overload instead to dispose elements and collection together.
Parameters
dict
IDictionary<TKey, TValue>t
float
Type Parameters
TKey
TValue
Remarks
Dispose()
will be called if TKey
and/or TValue
implements IDisposable.