Breakroom is now Sinewave Campus. Book a meeting

SVoiceZone

ClientComposants
Dans cette classeSetOverrideVoice
  1. Fonctions
  2. SetOverrideVoice
  3. ClearOverrideVoice
  4. SetOverrideVideo
  5. ClearOverrideVideo
  6. AddAuthVoiceUser
  7. RemoveAuthVoiceUser
  8. AddAuthVideoUser
  9. RemoveAuthVideoUser
  10. Propriétés
  11. Enabled
  12. AllowVoice
  13. AllowVideo
  14. ConnectVoiceService
  15. ConnectVideoService
  16. Priority
  17. AreaName
  18. Spatialized
  19. SpatialDropoff
  20. SpatialStereo
  21. SpatialDistance
  22. Global
  23. AuthVideoUsers
  24. AuthVoiceUsers
  25. GameObject
Membres 23
FonctionSetOverrideVoiceSet voice to override the original voice.
FonctionClearOverrideVoiceClear the overriding voice.
FonctionSetOverrideVideo–
FonctionClearOverrideVideo–
FonctionAddAuthVoiceUserAdd a user to AuthVoiceUser by his ID.
FonctionRemoveAuthVoiceUserRemove a user from AuthVoiceUser by his ID.
FonctionAddAuthVideoUser–
FonctionRemoveAuthVideoUserRemove a user from AuthVoiceUser by his ID.
PropriétéEnabledWhether the Voice Zone component is Enabled
PropriétéAllowVoiceWhether allows voice.
PropriétéAllowVideoWhether allows video.
PropriétéConnectVoiceService–
PropriétéConnectVideoService–
PropriétéPriorityThe priority of the voice zone
PropriétéAreaNameThe name of area.
PropriétéSpatializedWhether the voice zone is spatialized.
PropriétéSpatialDropoffWhether the voice zone is spatialized drop off.
PropriétéSpatialStereoWhether the voice zone is spatial stereo.
PropriétéSpatialDistanceThe spatial distance of the voice zone.
PropriétéGlobalWhether the voice zone is global.
PropriétéAuthVideoUsersReturn an array of auth video user.
PropriétéAuthVoiceUsers–
PropriétéGameObject–

Fonctions​

SetOverrideVoice​

void SetOverrideVoice(bool enabled)

Set voice to override the original voice.

Paramètres

NomTypeValeur par défaut
enabledbool–

Valeurs de retour

void

Exemple

Lua
Space.Host.ExecutingObject.VoiceZone.SetOverrideVoice(true)

ClearOverrideVoice​

void ClearOverrideVoice()

Clear the overriding voice.

Valeurs de retour

void

Exemple

Lua
Space.Host.ExecutingObject.VoiceZone.ClearOverrideVoice()

SetOverrideVideo​

void SetOverrideVideo(bool enabled)

Paramètres

NomTypeValeur par défaut
enabledbool–

Valeurs de retour

void

Exemple

Lua
Space.Host.ExecutingObject.VoiceZone.SetOverrideVideo(true)

ClearOverrideVideo​

void ClearOverrideVideo()

Valeurs de retour

void

Exemple

Lua
Space.Host.ExecutingObject.VoiceZone.SetOverrideVideo(true)

AddAuthVoiceUser​

void AddAuthVoiceUser(uint userID)

Add a user to AuthVoiceUser by his ID.

Paramètres

NomTypeValeur par défaut
userIDuint–

Valeurs de retour

void

Exemple

Lua
Space.Host.ExecutingObject.VoiceZone.AddAuthVoiceUser(000000000)

RemoveAuthVoiceUser​

void RemoveAuthVoiceUser(uint userID)

Remove a user from AuthVoiceUser by his ID.

Paramètres

NomTypeValeur par défaut
userIDuint–

Valeurs de retour

void

Exemple

Lua
lSpace.Host.ExecutingObject.VoiceZone.RemoveAuthVoiceUser(000000000)

AddAuthVideoUser​

void AddAuthVideoUser(uint userID)

Paramètres

NomTypeValeur par défaut
userIDuint–

Valeurs de retour

void

Exemple

Lua
Space.Host.ExecutingObject.VoiceZone.AddAuthVideoUser(000000000)

RemoveAuthVideoUser​

void RemoveAuthVideoUser(uint userID)

Remove a user from AuthVoiceUser by his ID.

Paramètres

NomTypeValeur par défaut
userIDuint–

Valeurs de retour

void

Exemple

Lua
Space.Host.ExecutingObject.VoiceZone.RemoveAuthVideoUser(000000000)

Propriétés​

Enabled​

bool Enabled {get; set; }

Whether the Voice Zone component is Enabled

Exemple

Lua
Space.Host.ExecutingObject.VoiceZone.Enabled = true
Lua
--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​

bool AllowVoice {get; set; }

Whether allows voice.

Exemple

Lua
Space.Host.ExecutingObject.VoiceZone.AllowVoice = true

AllowVideo​

bool AllowVideo {get; set; }

Whether allows video.

Exemple

Lua
Space.Host.ExecutingObject.VoiceZone.AllowVideo = true

ConnectVoiceService​

bool ConnectVoiceService {get; set; }

Exemple

Lua
Space.Host.ExecutingObject.VoiceZone.ConnectVoiceService = true

ConnectVideoService​

bool ConnectVideoService {get; set; }

Exemple

Lua
Space.Host.ExecutingObject.VoiceZone.ConnectVideoService = true

PriorityLecture seule​

int Priority {get; }

The priority of the voice zone

Exemple

Lua
priority = Space.Host.ExecutingObject.VoiceZone.Priority

AreaNameLecture seule​

string AreaName {get; }

The name of area.

Exemple

Lua
priority = Space.Host.ExecutingObject.VoiceZone.AreaName

SpatializedLecture seule​

bool Spatialized {get; }

Whether the voice zone is spatialized.

Exemple

Lua
isSpatialized = Space.Host.ExecutingObject.VoiceZone.Spatialized

SpatialDropoffLecture seule​

bool SpatialDropoff {get; }

Whether the voice zone is spatialized drop off.

Exemple

Lua
spatialDropoff = Space.Host.ExecutingObject.VoiceZone.SpatialDropoff

SpatialStereoLecture seule​

bool SpatialStereo {get; }

Whether the voice zone is spatial stereo.

Exemple

Lua
spatialStereo = Space.Host.ExecutingObject.VoiceZone.SpatialStereo

SpatialDistanceLecture seule​

float SpatialDistance {get; }

The spatial distance of the voice zone.

Exemple

Lua
floatDistance = Space.Host.ExecutingObject.VoiceZone.SpatialDistance

GlobalLecture seule​

bool Global {get; }

Whether the voice zone is global.

Exemple

Lua
isGlobal = Space.Host.ExecutingObject.VoiceZone.Global

AuthVideoUsersLecture seule​

uint[] AuthVideoUsers {get; }

Return an array of auth video user.

Exemple

Lua
tableAuthVideoUsers = Space.Host.ExecutingObject.VoiceZone.AuthVideoUsers

AuthVoiceUsersLecture seule​

uint[] AuthVoiceUsers {get; }

Exemple

Lua
tableAuthVideoUsers = Space.Host.ExecutingObject.VoiceZone.AuthVoiceUsers

GameObjectLecture seule​

SGameObject GameObject {get; }

Exemple

Lua
theGameObject = Space.Host.ExecutingObject.VoiceZone.GameObject