SVoiceZone
On this classSetOverrideVoice
- Functions
- Set
Override Voice - Clear
Override Voice - Set
Override Video - Clear
Override Video - Add
Auth Voice User - Remove
Auth Voice User - Add
Auth Video User - Remove
Auth Video User - Properties
- Enabled
- Allow
Voice - Allow
Video - Connect
Voice Service - Connect
Video Service - Priority
- Area
Name - Spatialized
- Spatial
Dropoff - Spatial
Stereo - Spatial
Distance - Global
- Auth
Video Users - Auth
Voice Users - Game
Object
| Function | SetOverrideVoice | Set voice to override the original voice. |
| Function | ClearOverrideVoice | Clear the overriding voice. |
| Function | SetOverrideVideo | – |
| Function | ClearOverrideVideo | – |
| Function | AddAuthVoiceUser | Add a user to AuthVoiceUser by his ID. |
| Function | RemoveAuthVoiceUser | Remove a user from AuthVoiceUser by his ID. |
| Function | AddAuthVideoUser | – |
| Function | RemoveAuthVideoUser | Remove a user from AuthVoiceUser by his ID. |
| Property | Enabled | Whether the Voice Zone component is Enabled |
| Property | AllowVoice | Whether allows voice. |
| Property | AllowVideo | Whether allows video. |
| Property | ConnectVoiceService | – |
| Property | ConnectVideoService | – |
| Property | Priority | The priority of the voice zone |
| Property | AreaName | The name of area. |
| Property | Spatialized | Whether the voice zone is spatialized. |
| Property | SpatialDropoff | Whether the voice zone is spatialized drop off. |
| Property | SpatialStereo | Whether the voice zone is spatial stereo. |
| Property | SpatialDistance | The spatial distance of the voice zone. |
| Property | Global | Whether the voice zone is global. |
| Property | AuthVideoUsers | Return an array of auth video user. |
| Property | AuthVoiceUsers | – |
| Property | GameObject | – |
Functions
SetOverrideVoice
Set voice to override the original voice.
Parameters
| Name | Type | Default |
|---|---|---|
| enabled | bool | – |
Returns
void
Example
Space.Host.ExecutingObject.VoiceZone.SetOverrideVoice(true)
ClearOverrideVoice
Clear the overriding voice.
Returns
void
Example
Space.Host.ExecutingObject.VoiceZone.ClearOverrideVoice()
SetOverrideVideo
Parameters
| Name | Type | Default |
|---|---|---|
| enabled | bool | – |
Returns
void
Example
Space.Host.ExecutingObject.VoiceZone.SetOverrideVideo(true)
ClearOverrideVideo
Returns
void
Example
Space.Host.ExecutingObject.VoiceZone.SetOverrideVideo(true)
AddAuthVoiceUser
Add a user to AuthVoiceUser by his ID.
Parameters
| Name | Type | Default |
|---|---|---|
| userID | uint | – |
Returns
void
Example
Space.Host.ExecutingObject.VoiceZone.AddAuthVoiceUser(000000000)
RemoveAuthVoiceUser
Remove a user from AuthVoiceUser by his ID.
Parameters
| Name | Type | Default |
|---|---|---|
| userID | uint | – |
Returns
void
Example
lSpace.Host.ExecutingObject.VoiceZone.RemoveAuthVoiceUser(000000000)
AddAuthVideoUser
Parameters
| Name | Type | Default |
|---|---|---|
| userID | uint | – |
Returns
void
Example
Space.Host.ExecutingObject.VoiceZone.AddAuthVideoUser(000000000)
RemoveAuthVideoUser
Remove a user from AuthVoiceUser by his ID.
Parameters
| Name | Type | Default |
|---|---|---|
| userID | uint | – |
Returns
void
Example
Space.Host.ExecutingObject.VoiceZone.RemoveAuthVideoUser(000000000)
Properties
Enabled
Whether the Voice Zone component is Enabled
Example
Space.Host.ExecutingObject.VoiceZone.Enabled = true
--clicking this object will Enable/Disable it's Voice Zone component
thisGameObject = Space.Host.ExecutingObject
component = thisGameObject.VoiceZone
OnClick = function()
component.Enabled = not component.Enabled
end
thisGameObject.AddClickable()
thisGameObject.Clickable.OnClick(OnClick)
AllowVoice
Whether allows voice.
Example
Space.Host.ExecutingObject.VoiceZone.AllowVoice = true
AllowVideo
Whether allows video.
Example
Space.Host.ExecutingObject.VoiceZone.AllowVideo = true
ConnectVoiceService
Example
Space.Host.ExecutingObject.VoiceZone.ConnectVoiceService = true
ConnectVideoService
Example
Space.Host.ExecutingObject.VoiceZone.ConnectVideoService = true
PriorityRead only
The priority of the voice zone
Example
priority = Space.Host.ExecutingObject.VoiceZone.Priority
AreaNameRead only
The name of area.
Example
priority = Space.Host.ExecutingObject.VoiceZone.AreaName
SpatializedRead only
Whether the voice zone is spatialized.
Example
isSpatialized = Space.Host.ExecutingObject.VoiceZone.Spatialized
SpatialDropoffRead only
Whether the voice zone is spatialized drop off.
Example
spatialDropoff = Space.Host.ExecutingObject.VoiceZone.SpatialDropoff
SpatialStereoRead only
Whether the voice zone is spatial stereo.
Example
spatialStereo = Space.Host.ExecutingObject.VoiceZone.SpatialStereo
SpatialDistanceRead only
The spatial distance of the voice zone.
Example
floatDistance = Space.Host.ExecutingObject.VoiceZone.SpatialDistance
GlobalRead only
Whether the voice zone is global.
Example
isGlobal = Space.Host.ExecutingObject.VoiceZone.Global
AuthVideoUsersRead only
Return an array of auth video user.
Example
tableAuthVideoUsers = Space.Host.ExecutingObject.VoiceZone.AuthVideoUsers
AuthVoiceUsersRead only
Example
tableAuthVideoUsers = Space.Host.ExecutingObject.VoiceZone.AuthVoiceUsers
GameObjectRead only
Example
theGameObject = Space.Host.ExecutingObject.VoiceZone.GameObject



