TryGetCameraToWorldMatrix(out Matrix4x4)
This method will return the camera to world matrix at the time the photo was captured if location data if available.
Read time 1 minuteLast updated 14 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Windows.WebCam
- Assembly: UnityEngine.CoreModule
TryGetCameraToWorldMatrix(Matrix4x4)
public bool TryGetCameraToWorldMatrix(out Matrix4x4 cameraToWorldMatrix)
Parameters
A matrix to be populated by the Camera to world Matrix.
Returns
Type | Description |
|---|---|
| bool | True if a valid matrix is returned or false otherwise. This will be false if the frame has no location data. |
Remarks
If location data is unavailable then the camera to world matrix will be set to the identity matrix.