Method DestroyUnityCamera
DestroyUnityCamera(Camera)
Destroy the camera's gameobject to delete all possible other component that the camera might have created and depend on the camera. It's the case for HDRP that create a HDCameraData. One should know that the CameraBuilder put the camera component on its own gameobject when we build it. (see AddCamera() implementation for more details)
Declaration
public static void DestroyUnityCamera(Camera camera)
Parameters
Type | Name | Description |
---|---|---|
Camera | camera | Camera to delete. |