đź‘‹
NRSDK(Old)
v1.10.2
v1.10.2
  • NRSDK Fundamentals
    • NRSDK Overview
    • XREAL Devices
      • XREAL Glasses
      • Controller
      • Compatibility
    • Getting Started with NRSDK
    • Sample Code
    • Tutorials
    • Release Note
      • NRSDK 1.10.2
      • NRSDK 1.9.5
      • NRSDK 1.9.3
      • NRSDK 1.9.1
      • NRSDK 1.8.0
      • NRSDK 1.7.0
      • NRSDK 1.6.0
  • Development
    • Input and Camera
      • NRInput
      • Interact with Unity UI (Tutorial)
      • Customize Controller UI
      • NRCameraRig
    • Hand Tracking
    • Image Tracking
    • Plane Detection (Tutorial)
      • Overview
      • Import the package
      • Detect planes in the real world
      • Perform a hit test against detected planes
      • Add a car
      • Add gems
      • Wrap up
    • Depth Mesh
      • Meshing Manager Overview
      • Use Meshes in the Editor
      • Tutorial: Mesh Collision
    • Tools
      • First Person View
      • Emulator
      • Notification popup
      • Reset Camera
    • MRTK Integration
  • Advanced
    • Access RGB Camera
    • NRSDK Coordinate Systems
  • XR Streaming
  • Frequently Asked Questions
Powered by GitBook
On this page
  • Ordinary prompt window
  • Error prompt window

Was this helpful?

  1. Development
  2. Tools

Notification popup

PreviousEmulatorNextReset Camera

Last updated 1 year ago

Was this helpful?

Ordinary prompt window

Ordinary prompt window provides information about the status of the devices, such as slam tracking state, glasses temprature level, device battery state.

image0

Enable Notification

  • Find the NRSessionConfig in your project

  • Check the “Enable Notifiction” box

Notification types

  • Currently provided notifiction windows:

    • Slam tracking lost

    • Glasses Temperature Warm

    • Glasses Temperature Hot

    • Phone Battery 30% Notification

    • Phone Battery 15% Notification

  • Please refer to NRNotificationListener prefab under NRSDK>Resources and its NRNotificationListener.cs script to customize your notification message.

Error prompt window

Error prompt window provides information for sever error. It usually pops up when the devices has been unable to run properly.

Customize error tips

  • Find the NRErrorTips prefab under NRSDK>Resources, copy it to your project.

  • Modify and save it as a new prefab, and drag it to your SessionConfig.

  • Modify prompt text

// Static constants need to be replaced in awake
void Awake()
{
    NativeConstants.GlassesDisconnectErrorTip = "Please connect your Nreal Light Glasses.";
    NativeConstants.UnknowErrorTip = "Unkown error! \nPlease contact Nreal's customer service.";
}

image4

image2
image3
image1
image5
image6