DestroyImmediate

DestroyImmediate(GameObject)

public static void DestroyImmediate(GameObject gameObject) ;

Description

Destroy GameObject immediately.

Parameters

Parameter Name Description
gameObject GameObject to destroy

Remarks

If it is a GameObject under pool management, return it to the pool.
If it is not under management, it is destroyed by Object.DestroyImmediate.