docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateUnityCameraDeferred

    CreateUnityCameraDeferred(GameObject, int, int, RenderTextureFormat, float)

    Create a non-physical (fov-based) camera that use deferred rendering to sample the scene.

    Declaration
    public static Camera CreateUnityCameraDeferred(GameObject parent, int width, int height, RenderTextureFormat format, float fov)
    Parameters
    Type Name Description
    GameObject parent

    GameObject that will be the parent of a new game object with a camera component.

    int width

    Camera image width in pixels.

    int height

    Camera image height in pixels.

    RenderTextureFormat format

    Camera image format.

    float fov

    Camera vertical field-of-view angle in degrees.

    Returns
    Type Description
    Camera

    the newly-created camera

    CreateUnityCameraDeferred(GameObject, CameraDesc)

    Create a physical camera that use deferred rendering to sample the scene.

    Declaration
    public static Camera CreateUnityCameraDeferred(GameObject parent, CameraDesc desc)
    Parameters
    Type Name Description
    GameObject parent

    GameObject that will be the parent of a new game object with a camera component.

    CameraDesc desc

    Sensor information that contain useful information to create the camera.

    Returns
    Type Description
    Camera

    the newly-created camera

    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)