Accessing HoloPlay Data with Blueprint Scripting
There may be times where you will want access to the HoloPlay data. This could be useful for manipulating camera settings dynamically, or for printing to screen for debug purposes.
There are two different methods you can use to find the information you need.

1) HoloPlay Settings Data

To get the data found in the HoloPlay Settings (as seen in the Project Settings) you can use the built-in Blueprint Function “Get HoloPlay Settings”. This will return an object reference to the current settings being used. To access this function in Blueprints, simply right click anywhere in the Blueprint Editor viewport and type “GetHoloPlaySettings”.
img
Next, you can pull the pit off the “Return Value” and type “HoloPlay” to see the variables that are available to read.
img
Finally, once you’ve selected a variable you can break the pin to see the contained values by right clicking the pin and selecting “Split Struct Pin” (you may need to do this for a few pins)
img

2) HoloPlay Capture Data

All data found in the “Details Panel” of the HoloPlayCapture Actor can be accessed and changed via Blueprints. To access the variables just right click in the Blueprint Editor Viewport and type “CaptureSettings” and select the variable you would like to read or change.
img
The Looking Glass Buttons can be accessed just like any other default input method in UE4. There are two ways to access the button events:

Button Access (8.9" and 15.6" Looking Glass only)

Direct Event Access
In the event graph if you right click and search “HoloPlay Button” you will be provided with the Gamepad events for all four buttons
Input Binding Settings
In the Project Settings under the Engine->Input subsection you can bind the HoloPlay button press to either an action or axis input mapping
The buttons are organized from left to right in naming convention
    HoloPlay Button 0 - Square Button
    HoloPlay Button 1 - Left Arrow
    HoloPlay Button 2 - Right Arrow
    HoloPlay Button 3 - Circle Button
Each button event provides access to both Pressed and Released events
Last modified 4mo ago