Now it's time to give ourselves a way to change our companion pawn's state. To do this, we're going to add a widget component to our player pawn, along with a widget interaction component we can use to interact with it:
- In the Content Browser, find the location of BP_VRPawn—our player pawn.
- In the same directory, create a UI | Widget Blueprint, and name it WBP_CompanionController.
- Save it and open it.
- In its Designer window, change Fill Screen to Custom as we did with our previous widget.
- Set its size to Width=300, Height=300.
- From the Palette, select Panel | Vertical Box, and drag it onto your Hierarchy as a child of the Canvas Panel:
- Set its Anchors to fill the entire panel by selecting the lower-rightmost option (in addition to managing placement rules, anchors can also manage stretching rules):
- Set its Offset...