Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Destroys the entity.
public:
void Destroy();
public void Destroy ();
member this.Destroy : unit -> unit
Public Sub Destroy ()
Remarks
Destroying an entity will also destroy all of its components and child entities. Once Destroy() has been called, Valid returns false.