SVoiceZone
في هذا الصنفSetOverrideVoice
- الدوال
- 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 - الخصائص
- 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
| دالة | SetOverrideVoice | Set voice to override the original voice. |
| دالة | ClearOverrideVoice | Clear the overriding voice. |
| دالة | SetOverrideVideo | – |
| دالة | ClearOverrideVideo | – |
| دالة | AddAuthVoiceUser | Add a user to AuthVoiceUser by his ID. |
| دالة | RemoveAuthVoiceUser | Remove a user from AuthVoiceUser by his ID. |
| دالة | AddAuthVideoUser | – |
| دالة | RemoveAuthVideoUser | Remove a user from AuthVoiceUser by his ID. |
| خاصية | Enabled | Whether the Voice Zone component is Enabled |
| خاصية | AllowVoice | Whether allows voice. |
| خاصية | AllowVideo | Whether allows video. |
| خاصية | ConnectVoiceService | – |
| خاصية | ConnectVideoService | – |
| خاصية | Priority | The priority of the voice zone |
| خاصية | AreaName | The name of area. |
| خاصية | Spatialized | Whether the voice zone is spatialized. |
| خاصية | SpatialDropoff | Whether the voice zone is spatialized drop off. |
| خاصية | SpatialStereo | Whether the voice zone is spatial stereo. |
| خاصية | SpatialDistance | The spatial distance of the voice zone. |
| خاصية | Global | Whether the voice zone is global. |
| خاصية | AuthVideoUsers | Return an array of auth video user. |
| خاصية | AuthVoiceUsers | – |
| خاصية | GameObject | – |
الدوال
SetOverrideVoice
Set voice to override the original voice.
المعاملات
| الاسم | النوع | القيمة الافتراضية |
|---|---|---|
| enabled | bool | – |
القيم المرجعة
void
مثال
Space.Host.ExecutingObject.VoiceZone.SetOverrideVoice(true)
ClearOverrideVoice
Clear the overriding voice.
القيم المرجعة
void
مثال
Space.Host.ExecutingObject.VoiceZone.ClearOverrideVoice()
SetOverrideVideo
المعاملات
| الاسم | النوع | القيمة الافتراضية |
|---|---|---|
| enabled | bool | – |
القيم المرجعة
void
مثال
Space.Host.ExecutingObject.VoiceZone.SetOverrideVideo(true)
ClearOverrideVideo
القيم المرجعة
void
مثال
Space.Host.ExecutingObject.VoiceZone.SetOverrideVideo(true)
AddAuthVoiceUser
Add a user to AuthVoiceUser by his ID.
المعاملات
| الاسم | النوع | القيمة الافتراضية |
|---|---|---|
| userID | uint | – |
القيم المرجعة
void
مثال
Space.Host.ExecutingObject.VoiceZone.AddAuthVoiceUser(000000000)
RemoveAuthVoiceUser
Remove a user from AuthVoiceUser by his ID.
المعاملات
| الاسم | النوع | القيمة الافتراضية |
|---|---|---|
| userID | uint | – |
القيم المرجعة
void
مثال
lSpace.Host.ExecutingObject.VoiceZone.RemoveAuthVoiceUser(000000000)
AddAuthVideoUser
المعاملات
| الاسم | النوع | القيمة الافتراضية |
|---|---|---|
| userID | uint | – |
القيم المرجعة
void
مثال
Space.Host.ExecutingObject.VoiceZone.AddAuthVideoUser(000000000)
RemoveAuthVideoUser
Remove a user from AuthVoiceUser by his ID.
المعاملات
| الاسم | النوع | القيمة الافتراضية |
|---|---|---|
| userID | uint | – |
القيم المرجعة
void
مثال
Space.Host.ExecutingObject.VoiceZone.RemoveAuthVideoUser(000000000)
الخصائص
Enabled
Whether the Voice Zone component is Enabled
مثال
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.
مثال
Space.Host.ExecutingObject.VoiceZone.AllowVoice = true
AllowVideo
Whether allows video.
مثال
Space.Host.ExecutingObject.VoiceZone.AllowVideo = true
ConnectVoiceService
مثال
Space.Host.ExecutingObject.VoiceZone.ConnectVoiceService = true
ConnectVideoService
مثال
Space.Host.ExecutingObject.VoiceZone.ConnectVideoService = true
Priorityللقراءة فقط
The priority of the voice zone
مثال
priority = Space.Host.ExecutingObject.VoiceZone.Priority
AreaNameللقراءة فقط
The name of area.
مثال
priority = Space.Host.ExecutingObject.VoiceZone.AreaName
Spatializedللقراءة فقط
Whether the voice zone is spatialized.
مثال
isSpatialized = Space.Host.ExecutingObject.VoiceZone.Spatialized
SpatialDropoffللقراءة فقط
Whether the voice zone is spatialized drop off.
مثال
spatialDropoff = Space.Host.ExecutingObject.VoiceZone.SpatialDropoff
SpatialStereoللقراءة فقط
Whether the voice zone is spatial stereo.
مثال
spatialStereo = Space.Host.ExecutingObject.VoiceZone.SpatialStereo
SpatialDistanceللقراءة فقط
The spatial distance of the voice zone.
مثال
floatDistance = Space.Host.ExecutingObject.VoiceZone.SpatialDistance
Globalللقراءة فقط
Whether the voice zone is global.
مثال
isGlobal = Space.Host.ExecutingObject.VoiceZone.Global
AuthVideoUsersللقراءة فقط
Return an array of auth video user.
مثال
tableAuthVideoUsers = Space.Host.ExecutingObject.VoiceZone.AuthVideoUsers
AuthVoiceUsersللقراءة فقط
مثال
tableAuthVideoUsers = Space.Host.ExecutingObject.VoiceZone.AuthVoiceUsers
GameObjectللقراءة فقط
مثال
theGameObject = Space.Host.ExecutingObject.VoiceZone.GameObject



