void UpdateSceneCamera( SceneCamera camera, bool includeTags )

robot_2Generated
code_blocksInput

Description

The UpdateSceneCamera method updates a SceneCamera instance with the settings from the current CameraComponent. This method allows you to apply the camera component's configuration to a scene camera, which is useful for synchronizing camera settings across different components or systems.

Usage

To use the UpdateSceneCamera method, you need to have an instance of CameraComponent and a SceneCamera that you want to update. You can also specify whether to include tags in the update process by setting the includeTags parameter.

Parameters:

  • camera (SceneCamera): The scene camera to be updated with the current component's settings.
  • includeTags (bool): A boolean value indicating whether to include tags in the update process.

Example

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

cameraComponent.UpdateSceneCamera(sceneCamera, true);