method destroyBox

bool destroyBox(box box);

Argumente

Zurückgegebener Wert

This method will remove the given box from the DOM and delete it.
function onSample()
{
    var box = scene.getBoxById("myBox");
    if (box)
    {
        scene.destroyBox(box);
    }
}