|
1 | | -# Unity Visual Scripting |
| 1 | +# Visual Scripting |
2 | 2 |
|
3 | 3 | Visual Scripting in Unity allows creating logic for games or applications without writing code, using visual, node-based graphs. The Dolby.io Communications Plugin for Unity provides nodes that allow using .NET SDK functionalities in Unity Visual Scripting 2021. The plugin can be used with Visual Scripting and C# scripting at the same time. This document describes the available nodes and events. |
4 | 4 |
|
5 | | -Before using the plugin for visual scripting, make sure that you added the .NET SDK to Unity and initialized the SDK using the [Initializing] procedure. |
| 5 | +Before using the plugin for visual scripting, make sure that you added the .NET SDK to Unity and initialized the SDK using the [Initializing](./unity.md#initialization) procedure. |
6 | 6 |
|
7 | 7 | ## Visual Scripting Nodes |
8 | 8 |
|
@@ -99,6 +99,39 @@ Allows getting objects of all participants who are present at a conference. |
99 | 99 | Parameters: |
100 | 100 | - **Participant Ids**: A list of participant IDs that causes returning only the objects of the listed participants. |
101 | 101 |
|
| 102 | +### Get Audio Devices |
| 103 | + |
| 104 | +Allows getting available audio devices. |
| 105 | + |
| 106 | +<div style="text-align:center"> |
| 107 | + <img style="padding:25px 0" src="~/images/nodes/audio-devices.png" width="250px"> |
| 108 | +</div> |
| 109 | + |
| 110 | +Parameters: |
| 111 | +- **Direction**: The [direction](xref:DolbyIO.Comms.DeviceDirection) of the devices. |
| 112 | + |
| 113 | +### Set Audio Input Device |
| 114 | + |
| 115 | +Allows setting the audio input device. |
| 116 | + |
| 117 | +<div style="text-align:center"> |
| 118 | + <img style="padding:25px 0" src="~/images/nodes/audio-input.png" width="250px"> |
| 119 | +</div> |
| 120 | + |
| 121 | +Parameters: |
| 122 | +- **Audio Device**: The [AudioDevice](xref:DolbyIO.Comms.AudioDevice) to set. |
| 123 | + |
| 124 | +### Set Audio Output Device |
| 125 | + |
| 126 | +Allows setting the audio output device. |
| 127 | + |
| 128 | +<div style="text-align:center"> |
| 129 | + <img style="padding:25px 0" src="~/images/nodes/audio-output.png" width="250px"> |
| 130 | +</div> |
| 131 | + |
| 132 | +Parameters: |
| 133 | +- **Audio Device**: The [AudioDevice](xref:DolbyIO.Comms.AudioDevice) to set. |
| 134 | + |
102 | 135 | ## The Visual Scripting Events |
103 | 136 |
|
104 | 137 | ### On Conference Status Updated Event |
@@ -133,6 +166,22 @@ Emitted when an active speaker has [changed](xref:DolbyIO.Comms.Services.Confere |
133 | 166 | <img style="padding:25px 0" src="~/images/nodes/event-active-speaker.png" width="250px"> |
134 | 167 | </div> |
135 | 168 |
|
| 169 | +### On Audio Device Added Event |
| 170 | + |
| 171 | +Emitted when an audio device is [added](xref:DolbyIO.Comms.Services.MediaDeviceService.Added). |
| 172 | + |
| 173 | +<div style="text-align:center"> |
| 174 | + <img style="padding:25px 0" src="~/images/nodes/event-audio-added.png" width="250px"> |
| 175 | +</div> |
| 176 | + |
| 177 | +### On Audio Device Changed Event |
| 178 | + |
| 179 | +Emitted when the active audio device has [changed](xref:DolbyIO.Comms.Services.MediaDeviceService.Changed). |
| 180 | + |
| 181 | +<div style="text-align:center"> |
| 182 | + <img style="padding:25px 0" src="~/images/nodes/event-audio-changed.png" width="250px"> |
| 183 | +</div> |
| 184 | + |
136 | 185 | ## Examples |
137 | 186 | ### Joining a Conference |
138 | 187 |
|
|
0 commit comments