Table of Contents

DestroyUnityObjectWith Method

DestroyUnityObjectWith(Object, CancellationToken) Deprecated

[Obsolete("Are you sure? Did you consider bind GameObject instead? Binding UnityEngine.Object lifetime to other could make things complex!!")]
public static IDisposable DestroyUnityObjectWith(this UnityEngine.Object obj, CancellationToken token)

Parameters

obj Object
token CancellationToken

Returns

IDisposable

DestroyUnityObjectWith(Object, SceneLifetime) Deprecated

[Obsolete("Are you sure? Did you consider bind GameObject instead? Binding UnityEngine.Object lifetime to other could make things complex!!")]
public static IDisposable DestroyUnityObjectWith(this UnityEngine.Object obj, SceneLifetime scene)

Parameters

obj Object
scene SceneLifetime

Returns

IDisposable

DestroyUnityObjectWith(Object, LifecycleBehaviour) Deprecated

[Obsolete("Are you sure? Did you consider bind GameObject instead? Binding UnityEngine.Object lifetime to other could make things complex!!")]
public static IDisposable DestroyUnityObjectWith(this UnityEngine.Object obj, LifecycleBehaviour owner)

Parameters

obj Object
owner LifecycleBehaviour

Returns

IDisposable

DestroyUnityObjectWith(Object, MonoBehaviour) Deprecated

[Obsolete("Are you sure? Did you consider bind GameObject instead? Binding UnityEngine.Object lifetime to other could make things complex!!")]
public static IDisposable DestroyUnityObjectWith(this UnityEngine.Object obj, MonoBehaviour mono)

Parameters

obj Object
mono MonoBehaviour

Returns

IDisposable