文档

Unity Engine

Unity Engine

TryGetCameraToWorldMatrix(out Matrix4x4)

This method will return the camera to world matrix at the time the photo was captured if location data if available.
阅读时间1 分钟最后更新于 1 个月前

Definition

TryGetCameraToWorldMatrix(Matrix4x4)

public bool TryGetCameraToWorldMatrix(out Matrix4x4 cameraToWorldMatrix)

Parameters

cameraToWorldMatrix

A matrix to be populated by the Camera to world Matrix.

Returns

Type

Description

boolTrue 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.