Deletes this SceneObject
from the scene. Once deleted, the object should not be accessed as it will no longer exist in the scene.
Deletes this SceneObject
from the scene. Once deleted, the object should not be accessed as it will no longer exist in the scene.
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 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.