Hi,
I have one doubt. Does Destroy() deletes the object permanently?
Please do clarify this concept.
Thanks
Hi,
I have one doubt. Does Destroy() deletes the object permanently?
Please do clarify this concept.
Thanks
Hey @SyedaAfreen
As Stated in Unity - Scripting API: Object.Destroy
Destroy function can be called for component, asset, or gameobject itself.
for example Destroy(obj);
If obj is a GameObject it will destroy the GameObject, all its components and all transform children of the GameObject. Actual object destruction is always delayed until after the current Update loop, but will always be done before rendering.