Hi everyone
I’m new to this area,
I’m trying to access the real RGB camera of Magic Leap 2 through Unity. I want to:
-
Display the camera feed in a
RawImage(or similar UI panel). -
Capture a photo and save it to disk.
However, whenever I try to use MLCamera, it always says the API is deprecated. I’m not sure how to proceed using the current Unity SDK.
I’ve seen references to MagicLeap.Android.AndroidCamera, but I’m not sure how to implement it correctly for continuous preview and taking pictures in Unity.
Does anyone have a working approach or example for:
-
Showing the real camera feed in a Unity UI (RawImage or 3D quad)
-
Capturing a still image and saving it
-
Using the current, supported APIs (not deprecated)
Any guidance or example scripts would be really appreciated.
Thanks!