C# Класс Photon.Voice.PUN.PhotonVoiceView

Наследование: VoiceComponent
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AutoCreateRecorderIfNotFound bool
SetupDebugSpeaker bool
UsePrimaryRecorder bool

Private Properties

Свойство Тип Описание
CheckLateLinking void
OnEnable void
Setup void
SetupRecorder bool
SetupRecorder bool
SetupRecorderInUse void
SetupSpeaker bool
SetupSpeaker bool
SetupSpeakerInUse void
Start void

Открытые методы

Метод Описание
Init ( ) : void

Initializes this PhotonVoiceView for Voice usage based on the PhotonView, Recorder and Speaker components.

The initialization should happen automatically. Call this method explicitly if this does not succeed. The initialization is a two steps operation: step one is the setup of Recorder and Speaker to be used. Step two is the late-linking -if needed- of the SpeakerInUse and corresponding remote voice info -if any- via ViewID.

Защищенные методы

Метод Описание
Awake ( ) : void

Приватные методы

Метод Описание
CheckLateLinking ( ) : void
OnEnable ( ) : void
Setup ( ) : void
SetupRecorder ( ) : bool
SetupRecorder ( Recorder recorder ) : bool
SetupRecorderInUse ( ) : void
SetupSpeaker ( ) : bool
SetupSpeaker ( Speaker speaker ) : bool
SetupSpeakerInUse ( ) : void
Start ( ) : void

Описание методов

Awake() защищенный Метод

protected Awake ( ) : void
Результат void

Init() публичный Метод

Initializes this PhotonVoiceView for Voice usage based on the PhotonView, Recorder and Speaker components.
The initialization should happen automatically. Call this method explicitly if this does not succeed. The initialization is a two steps operation: step one is the setup of Recorder and Speaker to be used. Step two is the late-linking -if needed- of the SpeakerInUse and corresponding remote voice info -if any- via ViewID.
public Init ( ) : void
Результат void

Описание свойств

AutoCreateRecorderIfNotFound публичное свойство

If true, a Recorder component will be added to the same GameObject if not found already.
public bool AutoCreateRecorderIfNotFound
Результат bool

SetupDebugSpeaker публичное свойство

If true, a Speaker component will be setup to be used for the DebugEcho mode
public bool SetupDebugSpeaker
Результат bool

UsePrimaryRecorder публичное свойство

If true, PhotonVoiceNetwork.PrimaryRecorder will be used by this PhotonVoiceView
public bool UsePrimaryRecorder
Результат bool