docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method NativeHandleValid

    NativeHandleValid(int)

    Method to be implemented by the provider to determine whether a native image handle is currently valid. An image can become invalid if it has been disposed.

    Declaration
    public virtual bool NativeHandleValid(int nativeHandle)
    Parameters
    Type Name Description
    int nativeHandle

    A unique identifier for the camera image in question.

    Returns
    Type Description
    bool

    true, if it is a valid handle. Otherwise, false.

    Remarks

    If a handle is valid, TryConvert(int, ConversionParams, IntPtr, int) and TryGetConvertedDataSize(int, Vector2Int, TextureFormat, out int) should not fail.

    Exceptions
    Type Condition
    NotSupportedException

    Thrown if the implementation does not support camera image.

    See Also
    DisposeImage(int)
    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023