Holoplay\Examples\7 - Dual Monitor Application
DMA Builder
GameObject from the scene hierarchyDual Monitor Application Manager
script, select the Setup\Open Scenes
buttonSetup\Open Scenes
button loads in the _extendedUI
scene of the same name. This scene drives the UI on the 2D window. If a scene doesn't exist by this name, this button will create it.DMA Builder
game object, with the Dual Monitor Application Manager
script field for Display
set to Window 2D
. This is required so that the scenes can identify which displays they drive.HoloPlay Capture
to the scene, found in Assets/Holoplay/Prefabs/
DMA Builder
to the scene, found in Assets/Holoplay/Prefabs/
DMA Builder
from the scene hierarchy, and click Setup/Open Scene
- you'll need to save your scene firstDMA Builder
to the second sceneDual Monitor Application
's Display
to Window 2D
DMA IPC
object to each scene (if cross-application communication is required)DMA IPC
's Dual Monitor Application Base IPC
to Looking Glass
for the Looking Glass scene, and Window 2D
for the 2D sceneInter Process Communicator
's Role
to Receiver
for the Looking Glass scene and Sender
for the 2D sceneInter Process Communicator
's Signing Char
to something new that matches in both scenes (recommended)DMA Canvas
, though you will need to additionally add an Event System to your scene for Unity UI events.DMA Builder
game objectDual Monitor Application Manager
script in the inspectorInterProcessCommunicator
in your scene.InterProcessCommunicator.SendData
with a string as the parameter. This will be sent to the receiver. You can call this function either from a script or from UI events.InterProcessCommunicator
in that scene.ReceiveMessage(string message)
.