Scene.instanceDestroy

Destroys an instance from the scene or from memory, depending on the template argument, by its class.

  1. void instanceDestroy(Instance instance, bool isRemoveHandle)
  2. void instanceDestroy()
    class Scene
    @safe final @trusted
    void
    instanceDestroy
    (
    ubyte type
    Name
    )
    ()
    in (isInstance!Name)

Parameters

type

Type destroy.

Name

Instance class.

Type: InScene - Removes only from the scene, does not free memory. InMemory - Removes permanently, from the scene and from memory (by the garbage collector).

Meta