Destroy
Destroy(GameObject)
public static void Destroy(GameObject gameObject) ;
Description
Destroy GameObject.
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.Destroy.