docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)