- Home /
Destroy function not documented?
Is there a UnityEngine.Object method called DestroyObject? Because that is what is showing up on my auto complete list in Unity and from what I have seen, it does nothing. I was wondering if it is a bug in my machine, it is a function that is not documented, or just a function from a previous version that does not work.
BTW, I am using Unity3D 3.5.6f4
Answer by Bunny83 · May 02, 2013 at 02:30 PM
There are a lot functions an classes that aren't documented. It's usually wise to not use them since they might get or have been deprecated at any time. Here in my Unity 4.0 it's still there, they probably forget to mark it as obsolete.
So its most likely an obsolete function that currently does nothing? Cool thanks for the info. Found that bug (which I thought I fixed) after i published. Boy was my boss freaked out.
Answer by bodec · May 02, 2013 at 03:56 PM
The destroy function still works. just search for destroy I can't get the link to work I am using unity 4.0 so I know its still good.
not the Destory(Object) function, I mean the DestoryObject(object) function. the second one looks sporadic to me (it probobly worked when I set it up but now it doesnt).