void UpdateSceneCamera( SceneCamera camera, bool includeTags )

book_4_sparkGenerated
code_blocksInput

Description

The UpdateSceneCamera method is responsible for updating a SceneCamera instance with the settings defined in the CameraComponent. This method allows you to synchronize the camera's properties, such as position, rotation, and other relevant settings, with the SceneCamera object.

Usage

To use the UpdateSceneCamera method, you need to have an instance of CameraComponent and a SceneCamera that you wish to update. Call this method with the SceneCamera instance and a boolean indicating whether to include tags in the update process.

Parameters:

  • camera (SceneCamera): The camera instance that will be updated with the current settings of the CameraComponent.
  • includeTags (bool): A boolean value indicating whether to include tags in the update process. If true, tags will be considered during the update.

Example

// Assuming 'cameraComponent' is an instance of CameraComponent
// and 'sceneCamera' is an instance of SceneCamera

cameraComponent.UpdateSceneCamera(sceneCamera, true);