Struct XRAsyncCameraImageConversion
Syntax
public struct XRAsyncCameraImageConversion : IDisposable, IEquatable<XRAsyncCameraImageConversion>
Properties
conversionParams
Declaration
public XRCameraImageConversionParams conversionParams { get; }
Property Value
status
The status of the request.
Declaration
public 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
Overrides
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.
|
Exceptions
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
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