void Dispose()

robot_2Generated
code_blocksInput

Description

The Dispose method of the SceneCamera class is used to release all resources used by the camera. This method is sealed, meaning it cannot be overridden in derived classes. It is important to call this method when the camera is no longer needed to ensure that all resources are properly released and to prevent memory leaks.

Usage

Call the Dispose method when you are finished using the SceneCamera instance. This is typically done when the camera is no longer needed, such as when closing a scene or application. After calling Dispose, the camera should not be used again.

Example

// Example of using the Dispose method
SceneCamera camera = new SceneCamera();

// Use the camera for rendering or other operations

// Once done, dispose of the camera
camera.Dispose();

// After disposing, the camera should not be used again