Sorry, this is probably a dumb question, but how do I check if the nreal glasses are connected when my app launches?
I would like to add my own custom behaviour, in addition to the default nreal tooltip.
Currently I’ve just modified NRSessionManager.cs to make m_IsSessionError public and static, but that is obviously a bit of a hack!
Please feel free to ask any questions on the forum. For your question:
Launch with exception: You could monitor the NRSessionManager.OnKernalError event, this event indicates that the app launched with exception. Common problems include: glasses connection failure, glasses mode not 3D mode, etc.
Launch without exception: get the session status through NRFrame.SessionState.