Scene.instanceDestroy

Removes an instance from the list and, if a delete method is specified in the template, from memory.

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

Parameters

type

Type destroy.

instance Instance

Instance.

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