docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGetAsyncRequestData

    TryGetAsyncRequestData(int, out IntPtr, out int)

    Method to be implemented by the provider to get a pointer to the image data from a completed asynchronous request. This method should only succeed if GetAsyncRequestStatus(int) returns Ready.

    Declaration
    public virtual bool TryGetAsyncRequestData(int requestId, out IntPtr dataPtr, out int dataLength)
    Parameters
    Type Name Description
    int requestId

    The unique identifier associated with a request.

    IntPtr dataPtr

    A pointer to the native buffer containing the data.

    int dataLength

    The number of bytes in dataPtr.

    Returns
    Type Description
    bool

    true if dataPtr and dataLength were set and point to the image data.

    Exceptions
    Type Condition
    NotSupportedException

    Thrown if the implementation does not support camera image.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023