SVoiceZone
Dans cette classeSetOverrideVoice
- Fonctions
- 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 - Propriétés
- 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
| Fonction | SetOverrideVoice | Set voice to override the original voice. |
| Fonction | ClearOverrideVoice | Clear the overriding voice. |
| Fonction | SetOverrideVideo | – |
| Fonction | ClearOverrideVideo | – |
| Fonction | AddAuthVoiceUser | Add a user to AuthVoiceUser by his ID. |
| Fonction | RemoveAuthVoiceUser | Remove a user from AuthVoiceUser by his ID. |
| Fonction | AddAuthVideoUser | – |
| Fonction | RemoveAuthVideoUser | Remove a user from AuthVoiceUser by his ID. |
| Propriété | Enabled | Whether the Voice Zone component is Enabled |
| Propriété | AllowVoice | Whether allows voice. |
| Propriété | AllowVideo | Whether allows video. |
| Propriété | ConnectVoiceService | – |
| Propriété | ConnectVideoService | – |
| Propriété | Priority | The priority of the voice zone |
| Propriété | AreaName | The name of area. |
| Propriété | Spatialized | Whether the voice zone is spatialized. |
| Propriété | SpatialDropoff | Whether the voice zone is spatialized drop off. |
| Propriété | SpatialStereo | Whether the voice zone is spatial stereo. |
| Propriété | SpatialDistance | The spatial distance of the voice zone. |
| Propriété | Global | Whether the voice zone is global. |
| Propriété | AuthVideoUsers | Return an array of auth video user. |
| Propriété | AuthVoiceUsers | – |
| Propriété | GameObject | – |
Fonctions
SetOverrideVoice
Set voice to override the original voice.
Paramètres
| Nom | Type | Valeur par défaut |
|---|---|---|
| enabled | bool | – |
Valeurs de retour
void
Exemple
Space.Host.ExecutingObject.VoiceZone.SetOverrideVoice(true)
ClearOverrideVoice
Clear the overriding voice.
Valeurs de retour
void
Exemple
Space.Host.ExecutingObject.VoiceZone.ClearOverrideVoice()
SetOverrideVideo
Paramètres
| Nom | Type | Valeur par défaut |
|---|---|---|
| enabled | bool | – |
Valeurs de retour
void
Exemple
Space.Host.ExecutingObject.VoiceZone.SetOverrideVideo(true)
ClearOverrideVideo
Valeurs de retour
void
Exemple
Space.Host.ExecutingObject.VoiceZone.SetOverrideVideo(true)
AddAuthVoiceUser
Add a user to AuthVoiceUser by his ID.
Paramètres
| Nom | Type | Valeur par défaut |
|---|---|---|
| userID | uint | – |
Valeurs de retour
void
Exemple
Space.Host.ExecutingObject.VoiceZone.AddAuthVoiceUser(000000000)
RemoveAuthVoiceUser
Remove a user from AuthVoiceUser by his ID.
Paramètres
| Nom | Type | Valeur par défaut |
|---|---|---|
| userID | uint | – |
Valeurs de retour
void
Exemple
lSpace.Host.ExecutingObject.VoiceZone.RemoveAuthVoiceUser(000000000)
AddAuthVideoUser
Paramètres
| Nom | Type | Valeur par défaut |
|---|---|---|
| userID | uint | – |
Valeurs de retour
void
Exemple
Space.Host.ExecutingObject.VoiceZone.AddAuthVideoUser(000000000)
RemoveAuthVideoUser
Remove a user from AuthVoiceUser by his ID.
Paramètres
| Nom | Type | Valeur par défaut |
|---|---|---|
| userID | uint | – |
Valeurs de retour
void
Exemple
Space.Host.ExecutingObject.VoiceZone.RemoveAuthVideoUser(000000000)
Propriétés
Enabled
Whether the Voice Zone component is Enabled
Exemple
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.
Exemple
Space.Host.ExecutingObject.VoiceZone.AllowVoice = true
AllowVideo
Whether allows video.
Exemple
Space.Host.ExecutingObject.VoiceZone.AllowVideo = true
ConnectVoiceService
Exemple
Space.Host.ExecutingObject.VoiceZone.ConnectVoiceService = true
ConnectVideoService
Exemple
Space.Host.ExecutingObject.VoiceZone.ConnectVideoService = true
PriorityLecture seule
The priority of the voice zone
Exemple
priority = Space.Host.ExecutingObject.VoiceZone.Priority
AreaNameLecture seule
The name of area.
Exemple
priority = Space.Host.ExecutingObject.VoiceZone.AreaName
SpatializedLecture seule
Whether the voice zone is spatialized.
Exemple
isSpatialized = Space.Host.ExecutingObject.VoiceZone.Spatialized
SpatialDropoffLecture seule
Whether the voice zone is spatialized drop off.
Exemple
spatialDropoff = Space.Host.ExecutingObject.VoiceZone.SpatialDropoff
SpatialStereoLecture seule
Whether the voice zone is spatial stereo.
Exemple
spatialStereo = Space.Host.ExecutingObject.VoiceZone.SpatialStereo
SpatialDistanceLecture seule
The spatial distance of the voice zone.
Exemple
floatDistance = Space.Host.ExecutingObject.VoiceZone.SpatialDistance
GlobalLecture seule
Whether the voice zone is global.
Exemple
isGlobal = Space.Host.ExecutingObject.VoiceZone.Global
AuthVideoUsersLecture seule
Return an array of auth video user.
Exemple
tableAuthVideoUsers = Space.Host.ExecutingObject.VoiceZone.AuthVideoUsers
AuthVoiceUsersLecture seule
Exemple
tableAuthVideoUsers = Space.Host.ExecutingObject.VoiceZone.AuthVoiceUsers
GameObjectLecture seule
Exemple
theGameObject = Space.Host.ExecutingObject.VoiceZone.GameObject



