The type name 'Mode' does not exist in the type 'MLDepthCamera'

Unity Editor version: 2022.2.21
ML2 OS version: 1.3.1
MLSDK version: 1.9.0
Host OS: (Windows/MacOS): Windows

After updating the Magic Leap SDK using the Project Setup Tool (from 1.8.0 to 1.9.0), I got the below error: (reverting back to 1.8.0 solved the issue)

Error messages from logs:
Assets\MagicLeap\Examples\Scripts\DepthCameraExample.cs(73,27): error CS0426: The type name 'Mode' does not exist in the type 'MLDepthCamera'

Hi @xenia.sy.lin,

I'm not able to reproduce this error in the examples. Are you seeing this error in the editor? How could I go about reproducing this?

Best,

El

The Depth Camera API is experimental and can change without notice. In the update from 1.8.0 to 1.9.0, MLDepthCamera.Mode was renamed to MLDepthCamera.Stream

for example, the following code

    private MLDepthCamera.Mode mode = MLDepthCamera.Mode.LongRange;

would change to:

 private MLDepthCamera.Stream stream = MLDepthCamera.Stream.LongRange;