Accessing HoloPlay Data with Blueprint Scripting
Last updated
Last updated
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.
In order to change the settings of the HoloPlay Capture you'll need to have a reference to a HoloPlay Capture and also call the "reset cam" function after modifying the HoloPlay Capture's properties. If you don't do this changing the properties won't do anything.
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โ.
Next, you can pull the pit off the โReturn Valueโ and type โHoloPlayโ to see the variables that are available to read.
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).
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.
The Looking Glass Buttons can be accessed just like any other default input method in Unreal. There are two ways to access the button events:
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