docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ReportCapture

    ReportCapture(string, SensorSpatialData, params (string, object)[])

    Report a sensor capture recorded to disk. This should be called on the same frame as the capture is taken, and may be called before the file is written to disk.

    Declaration
    public void ReportCapture(string filename, SensorSpatialData sensorSpatialData, params (string, object)[] additionalSensorValues)
    Parameters
    Type Name Description
    string filename

    The path to the capture data.

    SensorSpatialData sensorSpatialData

    Spatial data describing the sensor and the ego containing it.

    (string, object)[] additionalSensorValues

    Additional values to be emitted as json name/value pairs on the sensor object under the capture.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if ReportCapture is being called when ShouldCaptureThisFrame is false or it has already been called this frame.

    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)