Exemplo n.º 1
0
 /// <summary>
 /// Get the number of bytes required to store an image with the iven dimensions and <c>TextureFormat</c>.
 /// </summary>
 /// <param name="nativeHandle">A unique identifier for the camera image to convert.</param>
 /// <param name="dimensions">The dimensions of the output image.</param>
 /// <param name="format">The <c>TextureFormat</c> for the image.</param>
 /// <param name="size">The number of bytes required to store the converted image.</param>
 /// <returns><c>true</c> if the output <paramref name="size"/> was set.</returns>
 public override bool TryGetConvertedDataSize(
     int nativeHandle,
     Vector2Int dimensions,
     TextureFormat format,
     out int size)
 {
     return(NativeApi.UnityARKit_Camera_TryGetConvertedDataSize(nativeHandle, dimensions, format, out size));
 }