Breakroom is now Sinewave Campus. Book a meeting

SVoiceZone

العميلالمكونات
في هذا الصنفSetOverrideVoice
  1. الدوال
  2. SetOverrideVoice
  3. ClearOverrideVoice
  4. SetOverrideVideo
  5. ClearOverrideVideo
  6. AddAuthVoiceUser
  7. RemoveAuthVoiceUser
  8. AddAuthVideoUser
  9. RemoveAuthVideoUser
  10. الخصائص
  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
الأعضاء 23
دالةSetOverrideVoiceSet voice to override the original voice.
دالةClearOverrideVoiceClear the overriding voice.
دالةSetOverrideVideo–
دالةClearOverrideVideo–
دالةAddAuthVoiceUserAdd a user to AuthVoiceUser by his ID.
دالةRemoveAuthVoiceUserRemove a user from AuthVoiceUser by his ID.
دالةAddAuthVideoUser–
دالةRemoveAuthVideoUserRemove a user from AuthVoiceUser by his ID.
خاصيةEnabledWhether the Voice Zone component is Enabled
خاصيةAllowVoiceWhether allows voice.
خاصيةAllowVideoWhether allows video.
خاصيةConnectVoiceService–
خاصيةConnectVideoService–
خاصيةPriorityThe priority of the voice zone
خاصيةAreaNameThe name of area.
خاصيةSpatializedWhether the voice zone is spatialized.
خاصيةSpatialDropoffWhether the voice zone is spatialized drop off.
خاصيةSpatialStereoWhether the voice zone is spatial stereo.
خاصيةSpatialDistanceThe spatial distance of the voice zone.
خاصيةGlobalWhether the voice zone is global.
خاصيةAuthVideoUsersReturn an array of auth video user.
خاصيةAuthVoiceUsers–
خاصيةGameObject–

الدوال​

SetOverrideVoice​

void SetOverrideVoice(bool enabled)

Set voice to override the original voice.

المعاملات

الاسمالنوعالقيمة الافتراضية
enabledbool–

القيم المرجعة

void

مثال

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

ClearOverrideVoice​

void ClearOverrideVoice()

Clear the overriding voice.

القيم المرجعة

void

مثال

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

SetOverrideVideo​

void SetOverrideVideo(bool enabled)

المعاملات

الاسمالنوعالقيمة الافتراضية
enabledbool–

القيم المرجعة

void

مثال

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

ClearOverrideVideo​

void ClearOverrideVideo()

القيم المرجعة

void

مثال

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

AddAuthVoiceUser​

void AddAuthVoiceUser(uint userID)

Add a user to AuthVoiceUser by his ID.

المعاملات

الاسمالنوعالقيمة الافتراضية
userIDuint–

القيم المرجعة

void

مثال

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

RemoveAuthVoiceUser​

void RemoveAuthVoiceUser(uint userID)

Remove a user from AuthVoiceUser by his ID.

المعاملات

الاسمالنوعالقيمة الافتراضية
userIDuint–

القيم المرجعة

void

مثال

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

AddAuthVideoUser​

void AddAuthVideoUser(uint userID)

المعاملات

الاسمالنوعالقيمة الافتراضية
userIDuint–

القيم المرجعة

void

مثال

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

RemoveAuthVideoUser​

void RemoveAuthVideoUser(uint userID)

Remove a user from AuthVoiceUser by his ID.

المعاملات

الاسمالنوعالقيمة الافتراضية
userIDuint–

القيم المرجعة

void

مثال

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

الخصائص​

Enabled​

bool Enabled {get; set; }

Whether the Voice Zone component is Enabled

مثال

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.

مثال

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

AllowVideo​

bool AllowVideo {get; set; }

Whether allows video.

مثال

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

ConnectVoiceService​

bool ConnectVoiceService {get; set; }

مثال

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

ConnectVideoService​

bool ConnectVideoService {get; set; }

مثال

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

Priorityللقراءة فقط​

int Priority {get; }

The priority of the voice zone

مثال

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

AreaNameللقراءة فقط​

string AreaName {get; }

The name of area.

مثال

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

Spatializedللقراءة فقط​

bool Spatialized {get; }

Whether the voice zone is spatialized.

مثال

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

SpatialDropoffللقراءة فقط​

bool SpatialDropoff {get; }

Whether the voice zone is spatialized drop off.

مثال

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

SpatialStereoللقراءة فقط​

bool SpatialStereo {get; }

Whether the voice zone is spatial stereo.

مثال

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

SpatialDistanceللقراءة فقط​

float SpatialDistance {get; }

The spatial distance of the voice zone.

مثال

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

Globalللقراءة فقط​

bool Global {get; }

Whether the voice zone is global.

مثال

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

AuthVideoUsersللقراءة فقط​

uint[] AuthVideoUsers {get; }

Return an array of auth video user.

مثال

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

AuthVoiceUsersللقراءة فقط​

uint[] AuthVoiceUsers {get; }

مثال

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

GameObjectللقراءة فقط​

SGameObject GameObject {get; }

مثال

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