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.