docs.unity3d.com
    Show / Hide Table of Contents

    Class CameraBuilder

    This class is responsible to set up a unity camera corresponding to a sensor description. This is the way to sample the scene for sensor array.

    Inheritance
    Object
    CameraBuilder
    Namespace: Mechatronics.SensorSDK
    Syntax
    public static class CameraBuilder

    Methods

    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

    CreateUnityCameraDeferred(GameObject, Int32, Int32, RenderTextureFormat, Single)

    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.

    Int32 width

    Camera image width in pixels.

    Int32 height

    Camera image height in pixels.

    RenderTextureFormat format

    Camera image format.

    Single fov

    Camera vertical field-of-view angle in degrees.

    Returns
    Type Description
    Camera

    the newly-created camera

    CreateUnityCameraPathtracing(GameObject, CameraDesc)

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

    Declaration
    public static Camera CreateUnityCameraPathtracing(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.

    CreateUnityCameraRaytracing(GameObject, CameraDesc)

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

    Declaration
    public static Camera CreateUnityCameraRaytracing(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.

    DisableVolumetricFog(Camera)

    Disable volumetric fog rendering on the given camera.

    Declaration
    public static void DisableVolumetricFog(Camera camera)
    Parameters
    Type Name Description
    Camera camera

    Camera to alter

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023