MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Destroy

Method Destroy

Source/Engine/Scripting/Object.cs:179–182  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 8

OnEndMethod · 0.45
SyncBackbufferSizeMethod · 0.45
OnDestroyMethod · 0.45
OnDestroyMethod · 0.45
RadialMenuClass · 0.45
ReleaseMethod · 0.45
ReloadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected