Destroys the specified object and clears the reference variable. The object obj will be destroyed now or after the time specified in seconds from now. If obj is a Script it will be removed from the Actor and deleted. If obj is an Actor it will be removed from the Scene and deleted as well as all its Scripts and all children of the Actor. Actual object destruction is always delayed until
(Object obj, float timeLeft = 0.0f)
| 177 | /// <param name="obj">The object to destroy.</param> |
| 178 | /// <param name="timeLeft">The time left to destroy object (in seconds).</param> |
| 179 | public static void Destroy(Object obj, float timeLeft = 0.0f) |
| 180 | { |
| 181 | Internal_Destroy(GetUnmanagedPtr(obj), timeLeft); |
| 182 | } |
| 183 | |
| 184 | /// <summary> |
| 185 | /// Destroys the specified object and clears the reference variable. |
no outgoing calls
no test coverage detected