Hello,
I am trying to access the depth camera position and rotation with Unity API (v1.12.0).
According to the documentation it would be the variable public MLTransform CameraPose;
.but MLDepthCamera.NativeBindings does not seem to be accessible.
Could you provide any help on this please ?
You can get the position and rotation from the MLDepthCamera.Data
var result = MLDepthCamera.GetLatestDepthData(timeout, out MLDepthCamera.Data data);
Vector3 position = data.Position;
Vector3 rotation = data.Rotation;
Side note, the mlsdk is deprecated, so you may want to update your application to OpenXR and using the Pixel Sensor API in Unity.