Method TryGetLatestFrame
TryGetLatestFrame(XRCameraParams, out XRCameraFrame)
Get the latest frame from the provider.
Declaration
public bool TryGetLatestFrame(XRCameraParams cameraParams, out XRCameraFrame frame)
Parameters
| Type | Name | Description |
|---|---|---|
| XRCameraParams | cameraParams | The Unity |
| XRCameraFrame | frame | The camera frame to be populated if the subsystem is running and successfully provides the latest camera frame. |
Returns
| Type | Description |
|---|---|
| bool | true if the camera frame is successfully returned. Otherwise, false. |