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
objTtfloat
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
transformTransformtfloat
Dispose(Transform?[], float)
Obsolete
[Obsolete("Disposing Transform does nothing. Use DisposeGameObject() instead.", true)]
public static void Dispose(Transform?[] array, float t = 0)
Parameters
arrayTransform?[]tfloat
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
arrayTransform?[]tfloat
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
collectionICollection<Transform?>tfloat
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
collectionICollection<Transform?>tfloat
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
dictIDictionary<Transform, Transform?>tfloat
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
dictIDictionary<Transform, Transform?>tfloat
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
dictIDictionary<T, Transform?>tfloat
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
dictIDictionary<T, Transform?>tfloat
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
dictIDictionary<Transform, T>tfloat
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
dictIDictionary<Transform, T>tfloat
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
arrayT[]tfloat
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
arrayT[]tfloat
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
collectionICollection<T>tfloat
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
collectionICollection<T>tfloat
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
dictIDictionary<TKey, TValue>tfloat
Type Parameters
TKeyTValue
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
dictIDictionary<TKey, TValue>tfloat
Type Parameters
TKeyTValue
Remarks
Dispose() will be called if TKey and/or TValue implements IDisposable.