The Delete
method is a virtual method of the ScenePanel
class in the Sandbox.UI
namespace. It is used to delete the ScenePanel
instance, with an option to perform the deletion immediately or defer it.
The Delete
method is a virtual method of the ScenePanel
class in the Sandbox.UI
namespace. It is used to delete the ScenePanel
instance, with an option to perform the deletion immediately or defer it.
To use the Delete
method, call it on an instance of ScenePanel
. Pass a boolean value to the immediate
parameter to specify whether the deletion should occur immediately or be deferred.
If immediate
is set to true
, the panel will be deleted right away. If set to false
, the deletion may be deferred to a later time, allowing for any necessary cleanup or final operations to be performed.
// Example of using the Delete method on a ScenePanel instance ScenePanel myScenePanel = new ScenePanel(); // Delete the panel immediately myScenePanel.Delete(true); // Or, delete the panel with deferred execution myScenePanel.Delete(false);