Bracelet widget

The Bracelet contains one free slot to let you add your own widget panel.

In this example you will learn how to create a simple widget and add it to the Bracelet.

in skyreal

Create widget

Right click in the Content Browser and create a Widget Blueprint. You can rename it.

create widget bp

Then you must set the proper size to make it fit the bracelet. To do so, set the size to Custom and enter the dimensions 1800x2800.

custom widget size widget size

Now you can create the interface using the common widgets. You should respect the following layout to make the page title.

widget content widget scheme

Some events can be triggered from the widget (OnPressed for a button). To add an event, select the widget concerned and go at the bottom of the details tab. Then click on the appropriate event.

widget button

You are automatically sent to the Graph edition, which is the blueprint edition to make the logic behind your custom widget. To go back to the design edition, click on the Designer button on the top right corner.

widget graph

Register the widget

Once the Widget Blueprint is created you need to add it to the bracelet through the SDK.

Open the Level Blueprint and add the following blueprint:

widget integration

  • First you need to wait for the SkrController to be ready.
  • Then you need to bind the action of registering the widget to the On VR Status Changed event.
  • Add a Delay of few seconds to be sure the Bracelet is loaded.