DestroyWith Method
- Namespace
- SatorImaging.LifecycleManager
DestroyWith(IDisposable, CancellationToken)
public static IDisposable DestroyWith(this IDisposable obj, CancellationToken token)
Bind disposable lifetime to cancellation token.
Parameters
obj
IDisposabletoken
CancellationToken
Returns
DestroyWith(IDisposable, SceneLifetime)
public static IDisposable DestroyWith(this IDisposable obj, SceneLifetime scene)
Bind disposable lifetime to unity scene.
Parameters
obj
IDisposablescene
SceneLifetime
Returns
DestroyWith(IDisposable, LifecycleBehaviour)
public static IDisposable DestroyWith(this IDisposable obj, LifecycleBehaviour owner)
Bind disposable lifetime to lifecycle owner.
Parameters
obj
IDisposableowner
LifecycleBehaviour
Returns
DestroyWith(IDisposable, MonoBehaviour)
public static IDisposable DestroyWith(this IDisposable obj, MonoBehaviour mono)
Bind disposable lifetime to MonoBehaviour.
Parameters
obj
IDisposablemono
MonoBehaviour
Returns
DestroyWith(Transform, MonoBehaviour)
Obsolete
[Obsolete("UnityEngine.Transform is not supported to be disposed.", true)]
public static void DestroyWith(this Transform _, MonoBehaviour m)
Parameters
_
Transformm
MonoBehaviour
DestroyWith(Transform, SceneLifetime)
Obsolete
[Obsolete("UnityEngine.Transform is not supported to be disposed.", true)]
public static void DestroyWith(this Transform _, SceneLifetime s)
Parameters
_
Transforms
SceneLifetime
DestroyWith(Transform, CancellationToken)
Obsolete
[Obsolete("UnityEngine.Transform is not supported to be disposed.", true)]
public static void DestroyWith(this Transform _, CancellationToken c)
Parameters
_
Transformc
CancellationToken
DestroyWith(Transform, LifecycleBehaviour)
Obsolete
[Obsolete("UnityEngine.Transform is not supported to be disposed.", true)]
public static void DestroyWith(this Transform _, LifecycleBehaviour l)
Parameters
_
Transforml
LifecycleBehaviour
DestroyWith(GameObject, CancellationToken)
public static IDisposable DestroyWith(this GameObject obj, CancellationToken token)
Bind GameObject lifetime to cancellation token.
Parameters
obj
GameObjecttoken
CancellationToken
Returns
DestroyWith(GameObject, SceneLifetime)
public static IDisposable DestroyWith(this GameObject obj, SceneLifetime scene)
Bind GameObject lifetime to unity scene.
Parameters
obj
GameObjectscene
SceneLifetime
Returns
DestroyWith(GameObject, LifecycleBehaviour)
public static IDisposable DestroyWith(this GameObject obj, LifecycleBehaviour owner)
Bind GameObject lifetime to lifecycle owner.
Parameters
obj
GameObjectowner
LifecycleBehaviour
Returns
DestroyWith(GameObject, MonoBehaviour)
public static IDisposable DestroyWith(this GameObject obj, MonoBehaviour mono)
Bind GameObject lifetime to MonoBehaviour.
Parameters
obj
GameObjectmono
MonoBehaviour