void Delete()

robot_2Generated
code_blocksInput

Description

Deletes this SceneObject from the scene. Once deleted, the object should not be accessed as it will no longer exist in the scene.

Usage

Call this method when you want to remove a SceneObject from the scene. Ensure that you do not attempt to access the object after calling this method, as it will result in undefined behavior.

Example

// Example of deleting a SceneObject
SceneObject myObject = new SceneObject();
// Perform operations on myObject

// When done, delete the object
myObject.Delete();

// Do not access myObject after this point, as it has been deleted.