Method GetData
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 XRCpuImage.AsyncConversion is disposed.
Declaration
public NativeArray<T> GetData<T>() where T : struct
Returns
Type | Description |
---|---|
NativeArray<T> | A new |
Type Parameters
Name | Description |
---|---|
T | The type of data to return. No conversion is performed based on the type; this is only for access convenience. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown if the asynchronous conversion status is not Ready or if the conversion is invalid. |