void Reset()

book_4_sparkGenerated
code_blocksInput

Description

The Reset method of the CameraComponent class is used to reset the camera's settings to their default values. This method is virtual, allowing derived classes to override it if custom reset behavior is needed.

Usage

To use the Reset method, simply call it on an instance of CameraComponent. This will revert any changes made to the camera's properties back to their initial state.

Example

// Create a new CameraComponent instance
CameraComponent camera = new CameraComponent();

// Modify some properties
camera.FieldOfView = 90.0f;
camera.ZNear = 0.1f;

// Reset the camera to its default settings
camera.Reset();

// After reset, the FieldOfView and ZNear will be set to their default values.