docs.unity3d.com
    Show / Hide Table of Contents

    Class CustomRendererSampler

    This sampler provide a way to render the scene by bypassing the normal step of the camera rendering.

    Inheritance
    Object
    SceneSampler
    CustomRendererSampler
    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.CreateCustomPass(CustomPassInjectionPoint, CustomPassCallback.ExecuteCustomPassAction<CustomPassContext>)
    SceneSampler.OnCameraSamplingCompleted(CustomPassContext)
    Namespace: Mechatronics.SensorSDK
    Syntax
    public class CustomRendererSampler : SceneSampler

    Constructors

    CustomRendererSampler(GameObject, IPhotosensorArrayDescription, LensSystemDesc, SceneSamplerDesc, Action<ScriptableRenderContext, HDCamera>)

    Constructs a sampler that bypasses HDRP and defines its own rendering process.

    Declaration
    public CustomRendererSampler(GameObject parent, IPhotosensorArrayDescription sensorDesc, LensSystemDesc lensSystem, SceneSamplerDesc samplerDesc, Action<ScriptableRenderContext, HDCamera> callback)
    Parameters
    Type Name Description
    GameObject parent

    The gameobject corresponding to the component using this. Used to instantiate 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.

    Action<ScriptableRenderContext, HDCamera> callback

    Function to invoke when the sampling is completed.

    Methods

    InternalRelease()

    Release extra elements specific to this sampler. Mainly unregistering the rendering callback on the camera.

    Declaration
    protected override void InternalRelease()
    Overrides
    SceneSampler.InternalRelease()
    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