Method GetTextureDescriptors
GetTextureDescriptors(XRTextureDescriptor, Allocator)
Get the XRTextureDescriptors associated with the current XRCameraFrame.
Declaration
public virtual NativeArray<XRTextureDescriptor> GetTextureDescriptors(XRTextureDescriptor defaultDescriptor, Allocator allocator)
Parameters
| Type | Name | Description |
|---|---|---|
| XRTextureDescriptor | defaultDescriptor | A default value used to fill the returned array before copying in real values. This ensures future additions to this struct are backwards compatible. |
| Allocator | allocator | The allocation strategy to use for the returned data.. |
Returns
| Type | Description |
|---|---|
| NativeArray<XRTextureDescriptor> | The current texture descriptors. |