void DeletePendingObjects()

robot_2Generated
code_blocksInput

Description

The DeletePendingObjects method in the SceneWorld class is used to immediately delete objects that are marked for deletion. Normally, objects are deleted at the end of each frame, but calling this method will force the deletion to occur immediately. This can be useful in scenarios where you need to ensure that objects are removed from the scene before proceeding with further operations.

Usage

To use the DeletePendingObjects method, simply call it on an instance of SceneWorld. This will process and delete all objects that are pending deletion within that scene world.

Example

// Assuming 'sceneWorld' is an instance of SceneWorld
sceneWorld.DeletePendingObjects();

// This will immediately delete all objects that are pending deletion in the scene world.