docs.unity3d.com
    Show / Hide Table of Contents

    Class DefaultSampler

    Implements a way to sample the scene using the Unity standard camera.

    Inheritance
    Object
    SceneSampler
    DefaultSampler
    Inherited Members
    SceneSampler._camera
    SceneSampler._outputTexture
    SceneSampler._customPassesDesc
    SceneSampler._samplingRequestCallback
    SceneSampler._isSamplingRequested
    SceneSampler._sensorDesc
    SceneSampler._samplerDesc
    SceneSampler.Release()
    SceneSampler.AsyncSampleScene(Action<CustomPassContext, RenderTexture>)
    SceneSampler.SubscribeEventHandlers()
    SceneSampler.UnsubscribeEventHandlers()
    SceneSampler.OnExposureTimeChanged(Single, Single)
    SceneSampler.OnGainChanged(Single, Single)
    SceneSampler.InternalRelease()
    SceneSampler.CreateCustomPass(CustomPassInjectionPoint, CustomPassCallback.ExecuteCustomPassAction<CustomPassContext>)
    SceneSampler.OnCameraSamplingCompleted(CustomPassContext)
    Namespace: Mechatronics.SensorSDK
    Syntax
    public class DefaultSampler : SceneSampler

    Constructors

    DefaultSampler(GameObject, IPhotosensorArrayDescription, LensSystemDesc, SceneSamplerDesc, Boolean)

    Constructs a sampler that uses the Unity camera.

    Declaration
    public DefaultSampler(GameObject parent, IPhotosensorArrayDescription sensorDesc, LensSystemDesc lensSystem, SceneSamplerDesc samplerDesc, bool useRaytracing)
    Parameters
    Type Name Description
    GameObject parent

    The GameObject that corresponds to the utilized component. Instantiates a Unity camera to execute the sampling.

    IPhotosensorArrayDescription sensorDesc

    Information defined on the photosensor array node.

    LensSystemDesc lensSystem

    Information defined on the lens component.

    SceneSamplerDesc samplerDesc

    Extra parameters for the sampler.

    Boolean useRaytracing

    Determines if the sampler should use the raytracing to enhance the rendering.

    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