C# Class Photon.Voice.PUN.PhotonVoiceView

Inheritance: VoiceComponent
显示文件 Open project: toddkc/PhotonLobby Class Usage Examples

Public Properties

Property Type Description
AutoCreateRecorderIfNotFound bool
SetupDebugSpeaker bool
UsePrimaryRecorder bool

Private Properties

Property Type Description
CheckLateLinking void
OnEnable void
Setup void
SetupRecorder bool
SetupRecorder bool
SetupRecorderInUse void
SetupSpeaker bool
SetupSpeaker bool
SetupSpeakerInUse void
Start void

Public Methods

Method 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.

Protected Methods

Method Description
Awake ( ) : void

Private Methods

Method 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 method

protected Awake ( ) : void
return void

Init() public method

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
return 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
return bool

SetupDebugSpeaker public_oe property

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

UsePrimaryRecorder public_oe property

If true, PhotonVoiceNetwork.PrimaryRecorder will be used by this PhotonVoiceView
public bool UsePrimaryRecorder
return bool