docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGetLatestImage

    TryGetLatestImage(out XRCpuImage)

    Attempts to acquire the latest camera image. This provides direct access to the raw pixel data, as well as to utilities to convert to RGB and Grayscale formats. This method is obsolete. Use TryAcquireLatestCpuImage(out XRCpuImage) instead.

    Declaration
    [Obsolete("Use TryAcquireLatestCpuImage instead. (2020-05-19)")]
    public bool TryGetLatestImage(out XRCpuImage cpuImage)
    Parameters
    Type Name Description
    XRCpuImage cpuImage

    A valid XRCpuImage if this method returns true.

    Returns
    Type Description
    bool

    true if the image was acquired. Otherwise, false.

    Remarks

    The returned XRCpuImage must be disposed to avoid resource leaks.

    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