C# Class Photon.Voice.PUN.PhotonVoiceView

Inheritance: VoiceComponent
Afficher le fichier Open project: toddkc/PhotonLobby Class Usage Examples

Méthodes publiques

Свойство Type Description
AutoCreateRecorderIfNotFound bool
SetupDebugSpeaker bool
UsePrimaryRecorder bool

Private Properties

Свойство Type Description
CheckLateLinking void
OnEnable void
Setup void
SetupRecorder bool
SetupRecorder bool
SetupRecorderInUse void
SetupSpeaker bool
SetupSpeaker bool
SetupSpeakerInUse void
Start void

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
Awake ( ) : void

Private Methods

Méthode Description
CheckLateLinking ( ) : void
OnEnable ( ) : void
Setup ( ) : void
SetupRecorder ( ) : bool
SetupRecorder ( Recorder recorder ) : bool
SetupRecorderInUse ( ) : void
SetupSpeaker ( ) : bool
SetupSpeaker ( Speaker speaker ) : bool
SetupSpeakerInUse ( ) : void
Start ( ) : void

Method Details

Awake() protected méthode

protected Awake ( ) : void
Résultat void

Init() public méthode

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
Résultat void

Property Details

AutoCreateRecorderIfNotFound public_oe property

If true, a Recorder component will be added to the same GameObject if not found already.
public bool AutoCreateRecorderIfNotFound
Résultat bool

SetupDebugSpeaker public_oe property

If true, a Speaker component will be setup to be used for the DebugEcho mode
public bool SetupDebugSpeaker
Résultat bool

UsePrimaryRecorder public_oe property

If true, PhotonVoiceNetwork.PrimaryRecorder will be used by this PhotonVoiceView
public bool UsePrimaryRecorder
Résultat bool