How do I detect it is ML2 by code?

This may be a dumb question. How do I know I am running on a ML2 device in Unity? Apparently it is Android runtime. Is there a Macro define that distinguishes ML2 from other Android devices?

Magic leap provides a section in their guides to help with this issue. Here is the link and hope this helps:

1 Like

Thank you @dhartley ^

@rick if you just want a simple condition based on current hardware, you can read SystemInfo.deviceName which will return Magic Leap 2

1 Like