New Unity Project Setup starts out with a lot of compilation warnings

Unity Editor version: 2022.2.0b4
ML2 OS version: B3E.220721.07-R.026
MLSDK version: 0.53.2

I am following the development environment setup instructions from:
1. Set Up Development Environment | MagicLeap Developer Documentation

I imported the MLSDK, but after adding the ML XR plugin v7.0.0-exp.3 , there are 59 compiler warnings. A number of them are conflicting classes between MLSDK and the XR plugin, which doesn't sound good. Especially when the compiler has to chose which to use.

I am working a WebRTC client, so I've only included specific examples that had WebRTC in the name or seemed important: such as ReferenceFrame.

I didn't want to continue development until I felt confident I had things setup correctly.
Here is the breakdown of the warnings I'm seeing.

4x CS0618 => Lumin is no longer supported in Unity 2022.2:
UsesLuminPrivilegeAttribute,

11x CS0436 => conflicting types between ML SDK and ML XR Plugin:
ReferenceFrame,
ConvertStridedToGrayscaleJob,
ConvertARGB32ToGrayscaleJob,
ConvertBGRA32ToGrayscaleJob,
ConvertRFloatToGrayscaleJob,

18x CS0067 => event is never used
MLWebRTC.AudioSink.OnAudioDataAvailable_NativeCallbackThread,
MLWebRTC.AudioSink.OnAudioServiceStatusChanged,
MLWebRTC.AudioSink.OnAudioDataAvailable,
MLWebRTC.AudioSink.OnAudioDataAvailable,
...

26x CS0414 => assigned but its value is never used
MLWebRTC.VideoSink.prevWidth,
MLWebRTC.AppDefinedAudioSource.isEnabled,
MLWebRTC.VideoSink.prevHeight,
...

Andrew
ProjectSetupWarnings.txt (16.8 KB)

1 Like

Hi Andrew,

Can you please complete the project setup process completely exactly as written including the article "Configure Project Settings". There will be an editor restart required after which you should no longer see any warnings if you did not modify any steps in the instructions.

Additionally, can you clarify the "examples" you selected? Are you talking about the Magic Leap Examples project in The Lab 2.0?

1 Like

Closing due to inactivity. If, in the future, this issue arises, again. It is important to reference the instructions outlined in New Unity Project Setup starts out with a lot of compilation warnings - #2 by kvlasova.

1 Like