Struct XRAsyncCameraImageConversion
Syntax
public struct XRAsyncCameraImageConversion : IDisposable, IEquatable<XRAsyncCameraImageConversion>
Properties
conversionParams
Declaration
public XRCameraImageConversionParams conversionParams { readonly get; }
Property Value
status
The status of the request.
Declaration
public readonly AsyncCameraImageConversionStatus status { get; }
Property Value
Methods
Dispose()
Dispose native resources associated with this request, including the raw image data. The NativeArray
returned by GetData<T>() is invalidated immediately after calling Dispose
.
Declaration
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Equals(XRAsyncCameraImageConversion)
Declaration
public bool Equals(XRAsyncCameraImageConversion other)
Parameters
Returns
GetData<T>()
Get the raw image data. The returned NativeArray
is a direct "view" into the native memory. The
memory is only valid until this XRAsyncCameraImageConversion is disposed.
Declaration
public NativeArray<T> GetData<T>()
where T : struct
Returns
Type |
Description |
NativeArray<T> |
A new NativeArray representing the raw image data. This method may fail; use
NativeArray.IsCreated to determine the validity of the data.
|
Type Parameters
Name |
Description |
T |
The type of data to return. No conversion is performed based on the type; this is
merely for access convenience.
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
ToString()
Declaration
public override string ToString()
Returns
Operators
Equality(XRAsyncCameraImageConversion, XRAsyncCameraImageConversion)
Declaration
public static bool operator ==(XRAsyncCameraImageConversion lhs, XRAsyncCameraImageConversion rhs)
Parameters
Returns
Inequality(XRAsyncCameraImageConversion, XRAsyncCameraImageConversion)
Declaration
public static bool operator !=(XRAsyncCameraImageConversion lhs, XRAsyncCameraImageConversion rhs)
Parameters
Returns