void Delete()

book_4_sparkGenerated
code_blocksInput

Description

Deletes the current SceneWorld instance. Once this method is called, the scene world is no longer valid and should not be accessed or used in any way. This is a critical operation that effectively removes the scene world from memory, ensuring that all associated resources are released.

Usage

To delete a SceneWorld, simply call the Delete method on the instance you wish to remove. Ensure that you do not attempt to access the scene world after deletion, as this will lead to undefined behavior.

Example

// Create a new SceneWorld
SceneWorld mySceneWorld = new SceneWorld();

// Perform operations with mySceneWorld
// ...

// When done, delete the SceneWorld
mySceneWorld.Delete();

// Do not access mySceneWorld after this point